1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

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>
This commit is contained in:
schwarze 2018-08-04 19:19:37 +00:00
parent 194d006205
commit 5017b69c16

View File

@ -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;