diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2014-08-11 14:46:09 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2014-08-11 14:46:09 +0000 |
commit | fd162ebf382f18579d97fab0c77e04f34c9e8dde (patch) | |
tree | fe47898613a70e3ffd63ffc8557394762cb15124 /contrib/opie/opiekey.c | |
parent | 46db17059f8cf1af712a48a31e24ede565da96fd (diff) | |
download | src-fd162ebf382f18579d97fab0c77e04f34c9e8dde.tar.gz src-fd162ebf382f18579d97fab0c77e04f34c9e8dde.zip |
Last '/' for program name, not first one
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=269811
Diffstat (limited to 'contrib/opie/opiekey.c')
-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 a260d9650d16..a6c7aab69767 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]; |