From: Ulrich Drepper Date: Sun, 10 Oct 1999 20:48:58 +0000 (+0000) Subject: (__xpg_basename): Don't return pointer to slash before the basename. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=20cad20bc97822a13ba1e482b566367f27032502;p=thirdparty%2Fglibc.git (__xpg_basename): Don't return pointer to slash before the basename. --- diff --git a/stdlib/xpg_basename.c b/stdlib/xpg_basename.c index b789bc9a1a6..0e368071657 100644 --- a/stdlib/xpg_basename.c +++ b/stdlib/xpg_basename.c @@ -1,5 +1,5 @@ /* Return basename of given pathname according to the weird XPG specification. - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1997. @@ -62,6 +62,9 @@ __xpg_basename (char *filename) while (p[1] != '\0') ++p; } + else + /* Go to the first character of the name. */ + ++p; } }