Commit ce5e620f authored by Carlos Garcia Campos's avatar Carlos Garcia Campos

xpdf303: Handle the case where sid < 0

parent 9d77f999
......@@ -2715,7 +2715,9 @@ char *FoFiType1C::getString(int sid, char *buf, GBool *ok) {
Type1CIndexVal val;
int n;
if (sid < 391) {
if (sid < 0) {
buf[0] = '\0';
} else if (sid < 391) {
strcpy(buf, fofiType1CStdStrings[sid]);
} else {
sid -= 391;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment