Blame SOURCES/a2ps-overrun-dynamic.patch
|
|
8f1c6e |
diff -up a2ps-4.14/lib/darray.c.overrun-dynamic a2ps-4.14/lib/darray.c
|
|
|
8f1c6e |
--- a2ps-4.14/lib/darray.c.overrun-dynamic 2011-08-10 16:16:49.607014904 +0100
|
|
|
8f1c6e |
+++ a2ps-4.14/lib/darray.c 2011-08-10 16:17:10.965625881 +0100
|
|
|
8f1c6e |
@@ -430,7 +430,7 @@ da_qsort (struct darray * arr)
|
|
|
8f1c6e |
jstack += 2;
|
|
|
8f1c6e |
/* Push pointers to larger subarry on stack.
|
|
|
8f1c6e |
* Process smaller subarrays now */
|
|
|
8f1c6e |
- if (jstack > QSORT_STACK)
|
|
|
8f1c6e |
+ if (jstack >= QSORT_STACK)
|
|
|
8f1c6e |
error (da_exit_error, 0, "da_qsort: QSORT_STACK too small (%d)",
|
|
|
8f1c6e |
QSORT_STACK);
|
|
|
8f1c6e |
if (ir - i + 1 >= j - l) {
|
|
|
8f1c6e |
@@ -509,7 +509,7 @@ da_qsort_with_arg (struct darray * arr,
|
|
|
8f1c6e |
jstack += 2;
|
|
|
8f1c6e |
/* Push pointers to larger subarry on stack.
|
|
|
8f1c6e |
* Process smaller subarrays now */
|
|
|
8f1c6e |
- if (jstack > QSORT_STACK)
|
|
|
8f1c6e |
+ if (jstack >= QSORT_STACK)
|
|
|
8f1c6e |
error (da_exit_error, 0, "da_qsort: QSORT_STACK too small (%d)",
|
|
|
8f1c6e |
QSORT_STACK);
|
|
|
8f1c6e |
if (ir - i + 1 >= j - l) {
|