NULL terminate the g_build_filename args.

Original commit message from CVS:
NULL terminate the g_build_filename args.
This commit is contained in:
Iain Holmes 2003-10-29 12:04:54 +00:00
parent 0a4c6d8fd2
commit 03f8740304

View file

@ -62,7 +62,7 @@ spawn_all_in_dir(const char *dirname)
if (dir == NULL) return;
while( (file = g_dir_read_name (dir)) ){
argv[0] = g_build_filename(dirname, file);
argv[0] = g_build_filename(dirname, file, NULL);
g_print("running %s\n",argv[0]);
g_spawn_sync (NULL, argv, NULL, G_SPAWN_FILE_AND_ARGV_ZERO, NULL, NULL, NULL, NULL, NULL, NULL);
g_free(argv[0]);