From 46245d16580e189afb4b7713df241eeafb908dc4 Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 11 Aug 2014 14:46:09 +0000 Subject: Last '/' for program name, not first one MFC after: 1 week --- contrib/opie/opiekey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/opie') 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]; -- cgit v1.1