diff options
author | Jim Meyering <jim@meyering.net> | 1992-11-19 21:03:49 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1992-11-19 21:03:49 +0000 |
commit | 750bb6aa692485b3ffc567aabead9de97d4eb5ca (patch) | |
tree | d6d98478ae1f81ade5be9ae0368e89775921530a /src/cut.c | |
parent | ceda697482339c94618ad1cbd3ab79259f1991d9 (diff) | |
download | coreutils-750bb6aa692485b3ffc567aabead9de97d4eb5ca.tar.xz |
Merged in changes for 1.3.5.
Diffstat (limited to 'src/cut.c')
-rw-r--r-- | src/cut.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -20,7 +20,7 @@ possible. -David Ihnat (312) 784-4544 ignatz@homebru.chi.il.us POSIX changes, bug fixes, long-named options, and cleanup - by David MacKenzie <djm@ai.mit.edu>. + by David MacKenzie <djm@gnu.ai.mit.edu>. Options: --bytes=byte-list @@ -57,6 +57,7 @@ A FILE of `-' means standard input. */ +/* Get isblank from GNU libc. */ #define _GNU_SOURCE #include <ctype.h> #ifndef isblank @@ -527,7 +528,7 @@ cut_fields (stream) if (fieldfound) { /* Something was found. Print it. */ - if (outbufptr[-1] == delim) + if ((unsigned char) outbufptr[-1] == delim) --outbufptr; /* Suppress trailing delimiter. */ fwrite (outbuf, sizeof (char), outbufptr - outbuf, stdout); |