Pass the pointy hat, please.
Submitted by: ru
This commit is contained in:
parent
dbdb228cf7
commit
80578ef3c9
@ -3,6 +3,8 @@ static const char rcsid[] =
|
||||
"$FreeBSD$";
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include <string.h>
|
||||
|
||||
extern const char *__progname;
|
||||
|
||||
void
|
||||
@ -10,6 +12,6 @@ setprogname(const char *progname)
|
||||
{
|
||||
char *p;
|
||||
|
||||
p = strrchr('/', progname);
|
||||
__progname = p ? p+1 : progname;
|
||||
p = strrchr(progname, '/');
|
||||
__progname = p ? p + 1 : progname;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user