mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Copy trailing NULL into new ARGV array. (#67673)
Sat Dec 29 15:07:21 2001 Owen Taylor <otaylor@redhat.com> * glib/gspawn.c (script_execute): Copy trailing NULL into new ARGV array. (#67673)
This commit is contained in:
parent
963926c795
commit
a740df4158
@ -1,3 +1,8 @@
|
||||
Sat Dec 29 15:07:21 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gspawn.c (script_execute): Copy trailing NULL
|
||||
into new ARGV array. (#67673)
|
||||
|
||||
2001-12-28 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* glib/gmessages.c: only include printf_string_upper_bound() if
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sat Dec 29 15:07:21 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gspawn.c (script_execute): Copy trailing NULL
|
||||
into new ARGV array. (#67673)
|
||||
|
||||
2001-12-28 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* glib/gmessages.c: only include printf_string_upper_bound() if
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sat Dec 29 15:07:21 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gspawn.c (script_execute): Copy trailing NULL
|
||||
into new ARGV array. (#67673)
|
||||
|
||||
2001-12-28 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* glib/gmessages.c: only include printf_string_upper_bound() if
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sat Dec 29 15:07:21 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gspawn.c (script_execute): Copy trailing NULL
|
||||
into new ARGV array. (#67673)
|
||||
|
||||
2001-12-28 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* glib/gmessages.c: only include printf_string_upper_bound() if
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sat Dec 29 15:07:21 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gspawn.c (script_execute): Copy trailing NULL
|
||||
into new ARGV array. (#67673)
|
||||
|
||||
2001-12-28 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* glib/gmessages.c: only include printf_string_upper_bound() if
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sat Dec 29 15:07:21 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gspawn.c (script_execute): Copy trailing NULL
|
||||
into new ARGV array. (#67673)
|
||||
|
||||
2001-12-28 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* glib/gmessages.c: only include printf_string_upper_bound() if
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sat Dec 29 15:07:21 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gspawn.c (script_execute): Copy trailing NULL
|
||||
into new ARGV array. (#67673)
|
||||
|
||||
2001-12-28 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* glib/gmessages.c: only include printf_string_upper_bound() if
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sat Dec 29 15:07:21 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gspawn.c (script_execute): Copy trailing NULL
|
||||
into new ARGV array. (#67673)
|
||||
|
||||
2001-12-28 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* glib/gmessages.c: only include printf_string_upper_bound() if
|
||||
|
@ -1248,13 +1248,13 @@ script_execute (const gchar *file,
|
||||
{
|
||||
gchar **new_argv;
|
||||
|
||||
new_argv = g_new0 (gchar*, argc + 1);
|
||||
new_argv = g_new0 (gchar*, argc + 2); /* /bin/sh and NULL */
|
||||
|
||||
new_argv[0] = (char *) "/bin/sh";
|
||||
new_argv[1] = (char *) file;
|
||||
while (argc > 1)
|
||||
while (argc > 0)
|
||||
{
|
||||
new_argv[argc] = argv[argc - 1];
|
||||
new_argv[argc + 1] = argv[argc];
|
||||
--argc;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user