From: Ralf Habacker Date: Fri, 7 Dec 2018 18:02:14 +0000 (+0100) Subject: run-session: Fix warning 'array subscript 3 is above array bounds of 'char *[3]'... X-Git-Tag: dbus-1.13.10~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a3dd741fbfd696bf4be98d4653a236207738c0c;p=thirdparty%2Fdbus.git run-session: Fix warning 'array subscript 3 is above array bounds of 'char *[3]' on Windows After the merge request !22 was created, this bug was fixed in !23, the associated branch was used for local tests, but the fix was not transferred to !22. After merging !22 into the master branch and rebasing !23 to the master, this fix was lost. Reviewed-by: Simon McVittie --- diff --git a/tools/dbus-run-session.c b/tools/dbus-run-session.c index f608a55cb..d401e23eb 100644 --- a/tools/dbus-run-session.c +++ b/tools/dbus-run-session.c @@ -381,7 +381,7 @@ run_session (const char *dbus_daemon, char **argv, int prog_arg) { - char *dbus_daemon_argv[3]; + char *dbus_daemon_argv[4]; int ret = 127; HANDLE server_handle = NULL; HANDLE app_handle = NULL;