forked from pool/coreutils
9c9a8d0166
Update to 8.16 + Security fix already released for SLES OBS-URL: https://build.opensuse.org/request/show/114847 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/coreutils?expand=0&rev=75
17 lines
415 B
Diff
17 lines
415 B
Diff
Index: src/cut.c
|
|
===================================================================
|
|
--- src/cut.c.orig 2012-04-16 13:17:12.321020103 +0200
|
|
+++ src/cut.c 2012-04-16 13:17:12.333019817 +0200
|
|
@@ -869,7 +869,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;
|
|
|