forked from pool/coreutils
b041d4ec90
Accepted submit request 52848 from user psmt OBS-URL: https://build.opensuse.org/request/show/52848 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/coreutils?expand=0&rev=45
17 lines
415 B
Diff
17 lines
415 B
Diff
Index: src/cut.c
|
|
===================================================================
|
|
--- src/cut.c.orig 2010-11-11 16:28:46.581137538 +0100
|
|
+++ src/cut.c 2010-11-11 16:30:04.886974551 +0100
|
|
@@ -868,7 +868,10 @@ cut_fields_mb (FILE *stream)
|
|
c = getc (stream);
|
|
empty_input = (c == EOF);
|
|
if (c != EOF)
|
|
- ungetc (c, stream);
|
|
+ {
|
|
+ ungetc (c, stream);
|
|
+ wc = 0;
|
|
+ }
|
|
else
|
|
wc = WEOF;
|
|
|