summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/quiz/datfiles/bard2
-rw-r--r--games/quiz/quiz.c9
2 files changed, 9 insertions, 2 deletions
diff --git a/games/quiz/datfiles/bard b/games/quiz/datfiles/bard
index 56c76ed7c00..1dad4bfbe45 100644
--- a/games/quiz/datfiles/bard
+++ b/games/quiz/datfiles/bard
@@ -212,7 +212,7 @@ Antony [and|&] Cleopatra{ II-iii}:\
Enobarbus
Give me some music\: music, moody food:\
Of us that trade in love{.}:\
-Antony [and|&] Cleopatra{II-v}:\
+Antony [and|&] Cleopatra{ II-v}:\
Cleopatra
'Tis better playing with a lion's whelp,:\
Than with an old one dying{.}:\
diff --git a/games/quiz/quiz.c b/games/quiz/quiz.c
index bbd14de48a6..28eb3904aac 100644
--- a/games/quiz/quiz.c
+++ b/games/quiz/quiz.c
@@ -301,14 +301,21 @@ char *
next_cat(s)
register char * s;
{
+ int esc = 0;
+
for (;;)
switch (*s++) {
case '\0':
return (NULL);
case '\\':
+ esc = 1;
break;
case ':':
- return (s);
+ if (!esc)
+ return (s);
+ default:
+ esc = 0;
+ break;
}
/* NOTREACHED */
}