Pass the pointy hat, please.

Submitted by:	ru
This commit is contained in:
Jacques Vidrine 2001-08-21 17:16:32 +00:00
parent dbdb228cf7
commit 80578ef3c9

View File

@ -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;
}