From 4abec8c95cde4e9e3bdd2ea3c8f7ab7733a191af Mon Sep 17 00:00:00 2001 From: jsm Date: Fri, 17 Sep 1999 17:07:11 +0000 Subject: Fix some uses of NULL as non-pointer and 0 for null pointer. --- quiz/quiz.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'quiz') 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) == '\\') -- cgit v1.2.3-56-ge451