Last '/' for program name, not first one

MFC after:      1 week
This commit is contained in:
ache 2014-08-11 14:46:09 +00:00
parent 6e6c17d1a4
commit 46245d1658

View File

@ -145,7 +145,7 @@ int main FUNCTION((argc, argv), int argc AND char *argv[])
int type = RESPONSE_STANDARD;
int force = 0;
if (slash = strchr(argv[0], '/'))
if (slash = strrchr(argv[0], '/'))
slash++;
else
slash = argv[0];