diff options
author | Jim Meyering <jim@meyering.net> | 1995-04-14 04:29:41 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-04-14 04:29:41 +0000 |
commit | 93b95d2b78bb62781639f27363d6bddb6911edfd (patch) | |
tree | cdb263b8ca717b1d0b131f7f1d013d4cdb45c5a9 /src | |
parent | 73daf892271f3c06a507effa34aa1a9365659ede (diff) | |
download | coreutils-93b95d2b78bb62781639f27363d6bddb6911edfd.tar.xz |
(next_file_name): Don't reuse X as an index.
Declare new variable I instead.
Diffstat (limited to 'src')
-rw-r--r-- | src/split.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/split.c b/src/split.c index e1e376249..421ced910 100644 --- a/src/split.c +++ b/src/split.c @@ -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; } |