From: kramm Date: Sat, 10 Sep 2005 12:30:55 +0000 (+0000) Subject: fixed segv bug in drawChar() X-Git-Tag: xpdf-3-01~68 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=b9b2c8cf73300427c3becd50dca9d5579c6a5cfa fixed segv bug in drawChar() --- diff --git a/pdf2swf/SWFOutputDev.cc b/pdf2swf/SWFOutputDev.cc index ca34137..98a6db2 100644 --- a/pdf2swf/SWFOutputDev.cc +++ b/pdf2swf/SWFOutputDev.cc @@ -1257,7 +1257,7 @@ void SWFOutputDev::drawChar(GfxState *state, double x, double y, } } - if(charid<0) { + if(charid<0 && name) { if(strcasecmp(name, "space")) { msg(" Didn't find character '%s' (c=%d,u=%d) in current charset (%s, %d characters)", FIXNULL(name),c, u, FIXNULL((char*)current_font_id), current_gfxfont->num_glyphs);