diff options
author | 2018-08-04 19:19:37 +0000 | |
---|---|---|
committer | 2018-08-04 19:19:37 +0000 | |
commit | 5017b69c1669b21f1b74e28da640daa7b2012c28 (patch) | |
tree | 11a102dbac615ff30cc0ddd551e59e88fbf42f28 | |
parent | obvious KNF: avoid '!' for tests of non-boolean variables, (diff) | |
download | wireguard-openbsd-5017b69c1669b21f1b74e28da640daa7b2012c28.tar.xz wireguard-openbsd-5017b69c1669b21f1b74e28da640daa7b2012c28.zip |
fix a glitch in rev. 1.24: getline(3) returns ssize_t, not size_t;
pointed out by Andre Stoebe <as at nul not space>
-rw-r--r-- | usr.bin/paste/paste.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/paste/paste.c b/usr.bin/paste/paste.c index b89a2f1d4c0..77c9f328755 100644 --- a/usr.bin/paste/paste.c +++ b/usr.bin/paste/paste.c @@ -1,4 +1,4 @@ -/* $OpenBSD: paste.c,v 1.25 2018/08/04 16:47:05 schwarze Exp $ */ +/* $OpenBSD: paste.c,v 1.26 2018/08/04 19:19:37 schwarze Exp $ */ /* * Copyright (c) 1989 The Regents of the University of California. @@ -105,7 +105,8 @@ parallel(char **argv) SIMPLEQ_HEAD(, list) head = SIMPLEQ_HEAD_INITIALIZER(head); struct list *lp; char *line, *p; - size_t len, linesize; + size_t linesize; + ssize_t len; int cnt; int opencnt, output; char ch; @@ -175,7 +176,8 @@ sequential(char **argv) { FILE *fp; char *line, *p; - size_t len, linesize; + size_t linesize; + ssize_t len; int cnt; line = NULL; |