(setprogname): const poision

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15955 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-08-23 10:19:20 +00:00
parent 42b72ff2b8
commit a2255507d9

View File

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