From 5a3dd741fbfd696bf4be98d4653a236207738c0c Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Fri, 7 Dec 2018 19:02:14 +0100 Subject: [PATCH] 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 --- tools/dbus-run-session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3