]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
run-session: Fix warning 'array subscript 3 is above array bounds of 'char *[3]'...
authorRalf Habacker <ralf.habacker@freenet.de>
Fri, 7 Dec 2018 18:02:14 +0000 (19:02 +0100)
committerSimon McVittie <smcv@collabora.com>
Tue, 11 Dec 2018 10:39:02 +0000 (10:39 +0000)
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 <smcv@collabora.com>
tools/dbus-run-session.c

index f608a55cb8b04d3a1e1c217b66e57e8522335c76..d401e23eb64053c451b9ccb37f5185b4f95b0a71 100644 (file)
@@ -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;