summaryrefslogtreecommitdiff
path: root/src/csplit.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-09-26 08:25:44 +0000
committerJim Meyering <jim@meyering.net>2002-09-26 08:25:44 +0000
commitd50e1a86b7a8b36f63b5d6bab978b9765ac28f7e (patch)
tree1da92f47e2c5730f0971de72f6089c6b097548c3 /src/csplit.c
parent2c6d70041831caecabd417acaac562e3655e4db9 (diff)
downloadcoreutils-d50e1a86b7a8b36f63b5d6bab978b9765ac28f7e.tar.xz
add a FIXME comment
Diffstat (limited to 'src/csplit.c')
-rw-r--r--src/csplit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/csplit.c b/src/csplit.c
index df8546d7a..2ee32a3e6 100644
--- a/src/csplit.c
+++ b/src/csplit.c
@@ -1249,6 +1249,9 @@ get_format_width (char **format_ptr)
allow for enough octal digits to represent the value of LONG_MAX. */
count = ((*format_ptr == start)
? bytes_to_octal_digits[sizeof (long)]
+ /* FIXME: don't use atoi, it may silently overflow.
+ Besides, we know the result is non-negative, so shouldn't
+ need that cast. */
: (unsigned) atoi (start));
**format_ptr = ch_save;
return count;