diff options
author | Jim Meyering <jim@meyering.net> | 2004-05-17 12:34:36 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-05-17 12:34:36 +0000 |
commit | ee47cc09f6ed2acf17c90663acb92b5a468bdf9f (patch) | |
tree | 06646958e7a3966da4c78cbfe50d75c7bb5e6a79 /src | |
parent | c91f1d4a892a80a95bc2624f25fa2da468adfa5a (diff) | |
download | coreutils-ee47cc09f6ed2acf17c90663acb92b5a468bdf9f.tar.xz |
(incname): Decrement `len' only once per loop iteration.
Diffstat (limited to 'src')
-rw-r--r-- | src/shred.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shred.c b/src/shred.c index d6041ee35..4d51a4b32 100644 --- a/src/shred.c +++ b/src/shred.c @@ -1361,7 +1361,7 @@ incname (char *name, size_t len) { while (len--) { - char const *p = strchr (nameset, name[--len]); + char const *p = strchr (nameset, name[len]); /* If this character has a successor, use it. */ if (p[1]) |