|
From: <sv...@va...> - 2005-08-12 19:21:34
|
Author: tom
Date: 2005-08-12 20:21:29 +0100 (Fri, 12 Aug 2005)
New Revision: 4386
Log:
Make sure we have enough space for the name if the path is empty. Patch
from Jakub Jelinek to fix bug #110656.
Modified:
trunk/coregrind/m_main.c
Modified: trunk/coregrind/m_main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_main.c 2005-08-12 15:27:54 UTC (rev 4385)
+++ trunk/coregrind/m_main.c 2005-08-12 19:21:29 UTC (rev 4386)
@@ -952,7 +952,7 @@
static const char* executable_name;
=20
static Bool match_executable(const char *entry) {
- char buf[strlen(entry) + strlen(executable_name) + 2];
+ char buf[strlen(entry) + strlen(executable_name) + 3];
=20
/* empty PATH element means . */
if (*entry =3D=3D '\0')
|