From 5017b69c1669b21f1b74e28da640daa7b2012c28 Mon Sep 17 00:00:00 2001 From: schwarze Date: Sat, 4 Aug 2018 19:19:37 +0000 Subject: [PATCH] fix a glitch in rev. 1.24: getline(3) returns ssize_t, not size_t; pointed out by Andre Stoebe --- usr.bin/paste/paste.c | 8 +++++--- 1 file 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; -- 2.20.1