Index: /tags/ipp-20101215/ippTools/src/magictool.c
===================================================================
--- /tags/ipp-20101215/ippTools/src/magictool.c	(revision 30419)
+++ /tags/ipp-20101215/ippTools/src/magictool.c	(revision 30420)
@@ -979,5 +979,5 @@
         if (len) {
             if (limit) {
-                if (limit < psArrayLength(output)) {
+                if (limit <= len) {
                     // truncate the array
                     long arrayLength = psArrayLength(output);
