diff options
author | Bruno Haible <bruno@clisp.org> | 2006-10-31 19:18:54 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2006-10-31 19:18:54 +0000 |
commit | 20668199737bb0bf121381fa0ffa197f0aafcfd1 (patch) | |
tree | d66a70af41504312b4f43f73eed5511a99f4a118 /lib/findprog.c | |
parent | a2a1879395ffb102d4cd97510bb6b6386cecbe3d (diff) | |
download | gnulib-20668199737bb0bf121381fa0ffa197f0aafcfd1.tar.gz |
Make it compile in C++ mode.
Diffstat (limited to 'lib/findprog.c')
-rw-r--r-- | lib/findprog.c | 2 |
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); |