diff options
author | ache <ache@FreeBSD.org> | 2014-08-11 14:46:09 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2014-08-11 14:46:09 +0000 |
commit | 46245d16580e189afb4b7713df241eeafb908dc4 (patch) | |
tree | fe47898613a70e3ffd63ffc8557394762cb15124 /contrib/opie | |
parent | 6e6c17d1a413046433742b3eb8b192a31f5083e5 (diff) | |
download | FreeBSD-src-46245d16580e189afb4b7713df241eeafb908dc4.zip FreeBSD-src-46245d16580e189afb4b7713df241eeafb908dc4.tar.gz |
Last '/' for program name, not first one
MFC after: 1 week
Diffstat (limited to 'contrib/opie')
-rw-r--r-- | contrib/opie/opiekey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/opie/opiekey.c b/contrib/opie/opiekey.c index a260d96..a6c7aab 100644 --- a/contrib/opie/opiekey.c +++ b/contrib/opie/opiekey.c @@ -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]; |