From: Jim Meyering Date: Fri, 14 Apr 1995 04:29:41 +0000 (+0000) Subject: (next_file_name): Don't reuse X as an index. X-Git-Tag: textutils-1_12_1~237 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=93b95d2b78bb62781639f27363d6bddb6911edfd;p=thirdparty%2Fcoreutils.git (next_file_name): Don't reuse X as an index. Declare new variable I instead. --- diff --git a/src/split.c b/src/split.c index e1e3762490..421ced910e 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; }