summaryrefslogtreecommitdiff
path: root/lib/findprog.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2006-10-31 19:18:54 +0000
committerBruno Haible <bruno@clisp.org>2006-10-31 19:18:54 +0000
commit20668199737bb0bf121381fa0ffa197f0aafcfd1 (patch)
treed66a70af41504312b4f43f73eed5511a99f4a118 /lib/findprog.c
parenta2a1879395ffb102d4cd97510bb6b6386cecbe3d (diff)
downloadgnulib-20668199737bb0bf121381fa0ffa197f0aafcfd1.tar.gz
Make it compile in C++ mode.
Diffstat (limited to 'lib/findprog.c')
-rw-r--r--lib/findprog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/findprog.c b/lib/findprog.c
index 1535dcef04..5476b39d9b 100644
--- a/lib/findprog.c
+++ b/lib/findprog.c
@@ -92,7 +92,7 @@ find_in_path (const char *progname)
/* Add the "./" prefix for real, that concatenated_pathname()
optimized away. This avoids a second PATH search when the
caller uses execlp/execvp. */
- progpathname = xmalloc (2 + strlen (progname) + 1);
+ progpathname = (char *) xmalloc (2 + strlen (progname) + 1);
progpathname[0] = '.';
progpathname[1] = '/';
memcpy (progpathname + 2, progname, strlen (progname) + 1);