summaryrefslogtreecommitdiffstats
path: root/quiz/quiz.c
diff options
context:
space:
mode:
Diffstat (limited to 'quiz/quiz.c')
-rw-r--r--quiz/quiz.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/quiz/quiz.c b/quiz/quiz.c
index c00a6ef0..dddc1c96 100644
--- a/quiz/quiz.c
+++ b/quiz/quiz.c
@@ -42,7 +42,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)quiz.c 5.1 (Berkeley) 11/10/91";*/
-static char rcsid[] = "$Id: quiz.c,v 1.2 1993/08/01 18:52:59 mycroft Exp $";
+static char rcsid[] = "$Id: quiz.c,v 1.3 1993/11/17 11:58:40 cgd Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -310,7 +310,7 @@ appdstr(s, tp)
register int ch;
char *m;
- if ((m = malloc(strlen(sp) + strlen(tp) + 1)) == NULL)
+ if ((m = malloc(strlen(s) + strlen(tp) + 1)) == NULL)
err("%s", strerror(errno));
for (mp = m, sp = s; *mp++ = *sp++;);