summaryrefslogtreecommitdiff
path: root/src/wc.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-11-06 08:37:55 +0000
committerJim Meyering <jim@meyering.net>2003-11-06 08:37:55 +0000
commitc1f33f59f59af314aeb898e1c8d267dd5d808171 (patch)
treee4e66f5532f26bfd6294615793686873d8c4e365 /src/wc.c
parentda13dd4431782b3db9042c717f6d176a914d29d7 (diff)
downloadcoreutils-c1f33f59f59af314aeb898e1c8d267dd5d808171.tar.xz
Fix 'cut' problems with size_t overflow and unsigned int.
More generally, resize integer variables to fit use more precisely. (ADD_RANGE_PAIR): Remove unnecessary parens. (struct range_pair): Make members to be of type size_t, not unsigned. (max_range_endpoint, eol_range_start): Now size_t, not unsigned. (suppress_non_delimited, output_delimiter_specified, have_read_stdin, print_kth, set_fields): Now bool, nt int. (delim): Now unsigned char, not int. (mark_printable_field, is_printable_field, is_range_start_index, set_fields, set_fields, cut_bytes, cut_fields): Use size_t, not unsigned, for field and byte counts. (hash_int): Use uintptr_t, not unsigned, for pointers converted to integers. This squeezes more info out of them. (set_fields, cut_bytes, cut_fields, main): Use bool, not int, for booleans. (set_fields): Allocate zeroed byte array with xzalloc, not xcalloc.
Diffstat (limited to 'src/wc.c')
0 files changed, 0 insertions, 0 deletions