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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user