+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
+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
+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
+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
+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
+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
+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
+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
{
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;
}