projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mgetgroups: remove dependency on realloc-gnu
[gnulib.git]
/
lib
/
stripslash.c
diff --git
a/lib/stripslash.c
b/lib/stripslash.c
index
4084410
..
0e452a9
100644
(file)
--- a/
lib/stripslash.c
+++ b/
lib/stripslash.c
@@
-1,6
+1,7
@@
/* stripslash.c -- remove redundant trailing slashes from a file name
/* stripslash.c -- remove redundant trailing slashes from a file name
- Copyright (C) 1990, 2001, 2003-2006 Free Software Foundation, Inc.
+ Copyright (C) 1990, 2001, 2003-2006, 2009-2013 Free Software Foundation,
+ Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-34,7
+35,7
@@
strip_trailing_slashes (char *file)
bool had_slash;
/* last_component returns "" for file system roots, but we need to turn
bool had_slash;
/* last_component returns "" for file system roots, but we need to turn
-
`///' into `/'
. */
+
"///" into "/"
. */
if (! *base)
base = file;
base_lim = base + base_len (base);
if (! *base)
base = file;
base_lim = base + base_len (base);