[glib] W32: pass correct (with offset) argc to protect_wargv
- From: Руслан Ижбулатов <ruslanizhb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] W32: pass correct (with offset) argc to protect_wargv
- Date: Thu, 13 Oct 2016 14:11:56 +0000 (UTC)
commit 01bfa169865e010f0e995bd8abc7e15f4ae87969
Author: Edward E <develinthedetail gmail com>
Date: Thu Oct 13 10:21:15 2016 +0000
W32: pass correct (with offset) argc to protect_wargv
https://bugzilla.gnome.org/show_bug.cgi?id=772054
glib/gspawn-win32-helper.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gspawn-win32-helper.c b/glib/gspawn-win32-helper.c
index c4697c5..e7b6240 100644
--- a/glib/gspawn-win32-helper.c
+++ b/glib/gspawn-win32-helper.c
@@ -348,7 +348,7 @@ main (int ignored_argc, char **ignored_argv)
/* For the program name passed to spawnv(), don't use the quoted
* version.
*/
- protect_wargv (argc, wargv + argv_zero_offset, &new_wargv);
+ protect_wargv (argc - argv_zero_offset, wargv + argv_zero_offset, &new_wargv);
if (argv[ARG_USE_PATH][0] == 'y')
handle = _wspawnvp (mode, wargv[ARG_PROGRAM], (const wchar_t **) new_wargv);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]