svn commit: r269811 - head/contrib/opie

Andrey A. Chernov ache at FreeBSD.org
Mon Aug 11 14:46:10 UTC 2014


Author: ache
Date: Mon Aug 11 14:46:09 2014
New Revision: 269811
URL: http://svnweb.freebsd.org/changeset/base/269811

Log:
  Last '/' for program name, not first one
  
  MFC after:      1 week

Modified:
  head/contrib/opie/opiekey.c

Modified: head/contrib/opie/opiekey.c
==============================================================================
--- head/contrib/opie/opiekey.c	Mon Aug 11 14:37:57 2014	(r269810)
+++ head/contrib/opie/opiekey.c	Mon Aug 11 14:46:09 2014	(r269811)
@@ -145,7 +145,7 @@ int main FUNCTION((argc, argv), int argc
   int type = RESPONSE_STANDARD;
   int force = 0;
 
-  if (slash = strchr(argv[0], '/'))
+  if (slash = strrchr(argv[0], '/'))
     slash++;
   else
     slash = argv[0];


More information about the svn-src-all mailing list