diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-05-24 08:06:34 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-05-24 08:06:34 -0700 |
commit | af0c1d5ac3960776a4a485ca587744464630e634 (patch) | |
tree | 11d53c335586cea8822af9f2fb2ff57027c9b095 /sys/libn | |
parent | 39e4332d45e770dfe684071db4d3427fa2ca6b0c (diff) |
contin: in the middle of reorganizing the declaration parsing. check-in before reorganizing keywords
Diffstat (limited to 'sys/libn')
-rw-r--r-- | sys/libn/io.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/libn/io.c b/sys/libn/io.c index 3827a82..8aa4aa0 100644 --- a/sys/libn/io.c +++ b/sys/libn/io.c @@ -54,6 +54,8 @@ io·readln(Stream *s, int n, byte* buf) { byte* b; b = fgets(buf, n+1, s); + if (b == nil) + return -1; return strlen(buf); } |