- update my name. No obj-code changes ;)
[oweals/busybox.git] / debianutils / run_parts.c
index 953ff6732799ad6db5608877ee15bdf424c31c4e..7c38fa11f92ac0be075085f474ec69100a0800b3 100644 (file)
@@ -2,7 +2,7 @@
 /*
  * Mini run-parts implementation for busybox
  *
- * Copyright (C) 2007 Bernhard Fischer
+ * Copyright (C) 2007 Bernhard Reutner-Fischer
  *
  * Based on a older version that was in busybox which was 1k big..
  *   Copyright (C) 2001 by Emanuele Aina <emanuele.aina@tiscali.it>
@@ -90,9 +90,9 @@ static int FAST_FUNC act(const char *file, struct stat *statbuf, void *args UNUS
                return SKIP;
        }
 
-       names = xrealloc(names, (cur + 2) * sizeof(names[0]));
+       names = xrealloc_vector(names, 4, cur);
        names[cur++] = xstrdup(file);
-       names[cur] = NULL;
+       /*names[cur] = NULL; - xrealloc_vector did it */
 
        return TRUE;
 }