mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
NULL terminate the g_build_filename args.
Original commit message from CVS: NULL terminate the g_build_filename args.
This commit is contained in:
parent
0a4c6d8fd2
commit
03f8740304
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue