~ft/pdffs

18644a4682e18842c7b0f8d6f28c2a2356ba142f — Noam Preil 11 months ago c085dfc
parse: unrecognized escapes should drop the backslash
1 files changed, 2 insertions(+), 3 deletions(-)

M string.c
M string.c => string.c +2 -3
@@ 97,9 97,8 @@ pdfstring(Stream *stream)
					Sungetc(stream);
				oct[i] = 0;
				c = strtol(oct, nil, 8);
			}else if(c >= nelem(esc) || (c = esc[c]) == 0){
				werrstr("unknown escape char '%c'", c);
				goto err;
			}else if(c <= nelem(esc) && esc[c] != 0){
				c = esc[c];
			}else if(c < 0){
				continue;
			}