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:
parent
f73e5acfe1
commit
d47ac661e3
@ -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{.}:\
|
||||
|
@ -299,6 +299,7 @@ next_cat(s)
|
||||
case '\0':
|
||||
return (NULL);
|
||||
case '\\':
|
||||
s++;
|
||||
break;
|
||||
case ':':
|
||||
return (s);
|
||||
|
Loading…
Reference in New Issue
Block a user