summaryrefslogtreecommitdiffstats
path: root/quiz
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>1999-09-17 17:07:11 +0000
committerjsm <jsm@NetBSD.org>1999-09-17 17:07:11 +0000
commit4abec8c95cde4e9e3bdd2ea3c8f7ab7733a191af (patch)
treebd18b16daafedd5421d5f4089c371ac835b5c613 /quiz
parentf3b72bb6f00ed3af77a9c2fb10fff4678f05e99b (diff)
downloadbsdgames-darwin-4abec8c95cde4e9e3bdd2ea3c8f7ab7733a191af.tar.gz
bsdgames-darwin-4abec8c95cde4e9e3bdd2ea3c8f7ab7733a191af.tar.zst
bsdgames-darwin-4abec8c95cde4e9e3bdd2ea3c8f7ab7733a191af.zip
Fix some uses of NULL as non-pointer and 0 for null pointer.
Diffstat (limited to 'quiz')
-rw-r--r--quiz/quiz.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/quiz/quiz.c b/quiz/quiz.c
index aec0ae78..18b0f49d 100644
--- a/quiz/quiz.c
+++ b/quiz/quiz.c
@@ -1,4 +1,4 @@
-/* $NetBSD: quiz.c,v 1.15 1999/09/12 09:02:22 jsm Exp $ */
+/* $NetBSD: quiz.c,v 1.16 1999/09/17 17:07:11 jsm Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -47,7 +47,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 1993\n\
#if 0
static char sccsid[] = "@(#)quiz.c 8.3 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: quiz.c,v 1.15 1999/09/12 09:02:22 jsm Exp $");
+__RCSID("$NetBSD: quiz.c,v 1.16 1999/09/17 17:07:11 jsm Exp $");
#endif
#endif /* not lint */
@@ -342,7 +342,7 @@ appdstr(s, tp, len)
if ((m = malloc(strlen(s) + len + 1)) == NULL)
errx(1, "malloc");
- for (mp = m, sp = s; (*mp++ = *sp++) != NULL; )
+ for (mp = m, sp = s; (*mp++ = *sp++) != '\0'; )
;
--mp;
if (*(mp - 1) == '\\')