From b7ed63880698fde6c4aa8bb525f3cb382dc6b9f4 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 27 Oct 2003 05:41:15 +0000 Subject: [PATCH] * system.c (sys_spawn_shell): Cast trailing null to (char *). --- ChangeLog | 5 +++++ src/system.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ca66357..aa34520 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-10-26 Paul Eggert + + * system.c (sys_spawn_shell): Cast trailing null to (char *). + Bug reported by Christian Weisgerber. + 2003-10-19 Sergey Poznyakoff * AUTHORS: Updated diff --git a/src/system.c b/src/system.c index 58069cd..3b82480 100644 --- a/src/system.c +++ b/src/system.c @@ -214,7 +214,7 @@ sys_spawn_shell () child = xfork (); if (child == 0) { - execlp (shell, "-sh", "-i", 0); + execlp (shell, "-sh", "-i", (char *) 0); exec_fatal (shell); } else -- 2.45.2