/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 1998-2013 The OpenLDAP Foundation.
+ * Copyright 1998-2014 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
break;
EXCH(l+1,j);
jstack += 2;
- if (ir-i+1 >= j) {
+ if (ir-i+1 > j-l) {
istack[jstack] = ir;
istack[jstack-1] = i;
ir = j;