[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lost] [Patch] argv und Posix



* libc: Fuer posix dafuer sorgen, dass das letzte Element in argv NULL ist
=== src/modules/include/init.h
==================================================================
--- src/modules/include/init.h	(revision 1402)
+++ src/modules/include/init.h	(local)
@@ -112,12 +112,13 @@
         argc++;
     }
     
-    char* argv[argc];
+    char* argv[argc + 1];
     argv[0] = strtok(args, " ");
     for(pos = 1; pos < argc; pos++)
     {
         argv[pos] = strtok(NULL, " ");
     }
+    argv[argc] = NULL;