diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-06 18:50:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-06 18:50:39 +0000 |
commit | 0f64621783b3f46a4851826b9f4284e3c9dbeb61 (patch) | |
tree | 352fcb09d9321309ec519dc3144147a24bd64bda /games/quiz/quiz.c | |
parent | 997f28507be542389b846c45806474af6bbfdedc (diff) |
2451 lines of strdup/sprintf/strcpy whacking. mostly ok'd by pjanzen
already, but he may have later changes to make still.
Diffstat (limited to 'games/quiz/quiz.c')
-rw-r--r-- | games/quiz/quiz.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/quiz/quiz.c b/games/quiz/quiz.c index a403a468850..ec60350dbfb 100644 --- a/games/quiz/quiz.c +++ b/games/quiz/quiz.c @@ -1,4 +1,4 @@ -/* $OpenBSD: quiz.c,v 1.12 2002/12/06 21:48:51 millert Exp $ */ +/* $OpenBSD: quiz.c,v 1.13 2003/04/06 18:50:38 deraadt Exp $ */ /* $NetBSD: quiz.c,v 1.9 1995/04/22 10:16:58 cgd Exp $ */ /*- @@ -48,7 +48,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)quiz.c 8.3 (Berkeley) 5/4/95"; #else -static char rcsid[] = "$OpenBSD: quiz.c,v 1.12 2002/12/06 21:48:51 millert Exp $"; +static char rcsid[] = "$OpenBSD: quiz.c,v 1.13 2003/04/06 18:50:38 deraadt Exp $"; #endif #endif /* not lint */ @@ -265,7 +265,7 @@ quiz() qp->q_answered = TRUE; continue; } - (void)strcpy(question, t); + (void)strlcpy(question, t, sizeof question); s = qp->q_text; for (i = 0; i < cattwo - 1; i++) s = next_cat(s); |