| # | Line 10 | Line 10 | static const char RCSid[] = "$Id$"; | |
|---|---|---|
| 10 | #include "copyright.h" | |
| 11 | ||
| 12 | #include <ctype.h> | |
| 13 | + | #include <string.h> |
| 14 | ||
| 15 | extern char * | |
| 16 | fixargv0(av0) /* extract command name from full path */ | |
| # | Line 24 | Line 25 | char *av0; | |
| 25 | *cp = '\0'; | |
| 26 | continue; | |
| 27 | case '\\': /* remove directory */ | |
| 28 | < | return(cp+1); |
| 28 | > | strcpy(av0, cp+1); |
| 29 | > | break; |
| 30 | default: /* convert to lower case */ | |
| 31 | *cp = tolower(*cp); | |
| 32 | continue; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |