summaryrefslogtreecommitdiffstats
path: root/contrib/opie
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2014-08-11 14:46:09 +0000
committerache <ache@FreeBSD.org>2014-08-11 14:46:09 +0000
commit46245d16580e189afb4b7713df241eeafb908dc4 (patch)
treefe47898613a70e3ffd63ffc8557394762cb15124 /contrib/opie
parent6e6c17d1a413046433742b3eb8b192a31f5083e5 (diff)
downloadFreeBSD-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.c2
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];
OpenPOWER on IntegriCloud