A ':' in the data file was always interpreted as a category divider,

even if escaped.  Changed code so that the next character after a '\'
    is skipped.  This should not cause a buffer overflow, as backslashes
    at the end of a line are handled earlier in the code.

    Also correct a slight grammatical nit in the bard datfile.

PR:	3777, 3917
This commit is contained in:
jlemon 1997-08-18 20:26:32 +00:00
parent f73e5acfe1
commit d47ac661e3
2 changed files with 2 additions and 1 deletions

View File

@ -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{.}:\

View File

@ -299,6 +299,7 @@ next_cat(s)
case '\0':
return (NULL);
case '\\':
s++;
break;
case ':':
return (s);