use size_t instead of int for a length

This commit is contained in:
dholland 2014-03-22 23:39:04 +00:00
parent 4d631eb951
commit 246baf44c7

View File

@ -1,4 +1,4 @@
/* $NetBSD: bog.c,v 1.28 2012/10/13 20:12:18 dholland Exp $ */ /* $NetBSD: bog.c,v 1.29 2014/03/22 23:39:04 dholland Exp $ */
/*- /*-
* Copyright (c) 1993 * Copyright (c) 1993
@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1993\
#if 0 #if 0
static char sccsid[] = "@(#)bog.c 8.2 (Berkeley) 5/4/95"; static char sccsid[] = "@(#)bog.c 8.2 (Berkeley) 5/4/95";
#else #else
__RCSID("$NetBSD: bog.c,v 1.28 2012/10/13 20:12:18 dholland Exp $"); __RCSID("$NetBSD: bog.c,v 1.29 2014/03/22 23:39:04 dholland Exp $");
#endif #endif
#endif /* not lint */ #endif /* not lint */
@ -377,7 +377,7 @@ playgame(void)
else if (!validword(buf)) else if (!validword(buf))
badword(); badword();
else { else {
int len; size_t len;
len = strlen(buf) + 1; len = strlen(buf) + 1;
if (npwords == MAXPWORDS - 1 || if (npwords == MAXPWORDS - 1 ||