summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-02-25 00:04:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-02-25 00:04:10 +0000
commitaec336e7117f56924a2adcf7fb1264e1dcb8e53b (patch)
tree5a830f55622baab5d24cbe700c668c30254b86d5 /usr.bin
parentf448621756b9fed1607c8e7d4d17e07407fb5345 (diff)
getchar returns an int
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/fsplit/fsplit.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/fsplit/fsplit.c b/usr.bin/fsplit/fsplit.c
index e8d73683448..3565afe8c5c 100644
--- a/usr.bin/fsplit/fsplit.c
+++ b/usr.bin/fsplit/fsplit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fsplit.c,v 1.9 2002/02/16 21:27:46 millert Exp $ */
+/* $OpenBSD: fsplit.c,v 1.10 2002/02/25 00:04:09 deraadt Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -44,7 +44,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)fsplit.c 8.1 (Berkeley) 6/6/93";*/
-static char rcsid[] = "$OpenBSD: fsplit.c,v 1.9 2002/02/16 21:27:46 millert Exp $";
+static char rcsid[] = "$OpenBSD: fsplit.c,v 1.10 2002/02/25 00:04:09 deraadt Exp $";
#endif /* not lint */
#include <ctype.h>
@@ -273,10 +273,12 @@ get_name(name, letters)
int
getline()
{
+ int c;
char *ptr;
for (ptr = buf; ptr < &buf[BSZ];) {
- *ptr = getc(ifp);
+ c = getc(ifp);
+ *ptr = c;
if (feof(ifp))
return (-1);
if (*ptr++ == '\n') {