diff options
author | Kaz Kyheku <kaz@kylheku.com> | 2020-02-05 19:29:50 -0800 |
---|---|---|
committer | Kaz Kyheku <kaz@kylheku.com> | 2020-02-05 19:29:50 -0800 |
commit | baf36818dfb471378b0952a6d79f26e605877aa5 (patch) | |
tree | 6917cb057d1eb3d4c3cfc5d60b353a9e52cbce27 /tests/006/freeform-3.expected | |
parent | ffb07677cc6985997ad96064de3957183bb81997 (diff) | |
download | txr-baf36818dfb471378b0952a6d79f26e605877aa5.tar.gz txr-baf36818dfb471378b0952a6d79f26e605877aa5.tar.bz2 txr-baf36818dfb471378b0952a6d79f26e605877aa5.zip |
fill-buf/fill-buf-adjust: incorrect return value.
* stream.c (stdio_fill_buf): In the case of EOF, we must not
return zero, but pos. Also, since pos and nread are cnum,
we should use num to convert their sum to val. Converting to
unum doesn't do anything for the overflow situation.
Diffstat (limited to 'tests/006/freeform-3.expected')
0 files changed, 0 insertions, 0 deletions