1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 10:51:48 +02:00

(next_file_name): Don't reuse X as an index.

Declare new variable I instead.
This commit is contained in:
Jim Meyering
1995-04-14 04:29:41 +00:00
parent 73daf89227
commit 93b95d2b78

View File

@@ -555,6 +555,7 @@ next_file_name ()
{
int x;
char *ne;
unsigned int i;
outfile_count++;
if (outfile_count < outfile_name_limit)
@@ -574,7 +575,7 @@ next_file_name ()
outfile_name_limit *= 26;
outfile_name_generation++;
*outfile_mid++ = 'z';
for (x = 0; x <= outfile_name_generation; x++)
outfile_mid[x] = 'a';
for (i = 0; i <= outfile_name_generation; i++)
outfile_mid[i] = 'a';
outfile_end += 2;
}