Commit 3dac0de5 by Brendan Kehoe

cccp.c (main): Trim down to the basename of what's to go in PROGNAME.

        * cccp.c (main): Trim down to the basename of what's to go in
        PROGNAME.

From-SVN: r3248
parent 96f66730
......@@ -989,7 +989,10 @@ main (argc, argv)
signal (SIGPIPE, pipe_closed);
progname = argv[0];
p = argv[0] + strlen (argv[0]);
while (p != argv[0] && p[-1] != '/') --p;
progname = p;
#ifdef VMS
{
/* Remove directories from PROGNAME. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment