(incname): Decrement `len' only once per loop iteration.

This commit is contained in:
Jim Meyering committed 2004-05-17 12:34:36 +00:00
1 parent c91f1d4a89
commit ee47cc09f6
1 file changed
+1 -1
+1 -1
View File
@@ -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])