(setprogname): const poision
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15955 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -47,12 +47,12 @@ void ROKEN_LIB_FUNCTION
|
||||
setprogname(const char *argv0)
|
||||
{
|
||||
#ifndef HAVE___PROGNAME
|
||||
char *p;
|
||||
const char *p;
|
||||
if(argv0 == NULL)
|
||||
return;
|
||||
p = strrchr(argv0, '/');
|
||||
if(p == NULL)
|
||||
p = (char *)argv0;
|
||||
p = argv0;
|
||||
else
|
||||
p++;
|
||||
__progname = p;
|
||||
|
Reference in New Issue
Block a user