utils/finderrors.c
changeset 1136 0255ec8d7775
parent 1134 be31bd0ee0a2
child 1137 870fb459298d
--- a/utils/finderrors.c	Fri Feb 21 12:41:39 2014 -0500
+++ b/utils/finderrors.c	Tue Feb 25 14:05:12 2014 -0500
@@ -67,7 +67,7 @@
 
     (*total)++;
 
-    char *fname = (char *) alloca(strlen(fn) + strlen(dname) + 1);
+    char *fname = (char *) alloca(strlen(fn) + strlen(dname) + 2);
     sprintf(fname, "%s/%s", dname, fn);
     FILE *io = fopen(fname, "rb");
     if (io == NULL)