-/* $NetBSD: pig.c,v 1.7 1998/09/13 15:27:29 hubertf Exp $ */
+/* $NetBSD: pig.c,v 1.8 1999/09/18 19:38:53 jsm Exp $ */
/*-
* Copyright (c) 1992, 1993
#if 0
static char sccsid[] = "@(#)pig.c 8.2 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: pig.c,v 1.7 1998/09/13 15:27:29 hubertf Exp $");
+__RCSID("$NetBSD: pig.c,v 1.8 1999/09/18 19:38:53 jsm Exp $");
#endif
#endif /* not lint */
for (len = 0; (ch = getchar()) != EOF;) {
if (isalpha(ch)) {
- if (len >= sizeof(buf))
+ if ((size_t)len >= sizeof(buf))
errx(1, "ate too much!");
buf[len++] = ch;
continue;