Last '/' for program name, not first one

MFC after:      1 week
This commit is contained in:
Andrey A. Chernov 2014-08-11 14:46:09 +00:00
parent 46db17059f
commit fd162ebf38
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=269811

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