Ticket #2338: 2338.patch

File 2338.patch, 612 bytes (added by unicoletti, 17 years ago)

Fix for this bug

  • mappdf.c

     
    13031303
    13041304/*set up font handling*/
    13051305    /*set an alias for the font outline file*/
    1306     nFontOutlineLen = strlen(fontPath + 3);
    1307     fontOutlineAlias = (char *)malloc(sizeof(char)*(nFontOutlineLen));
     1306    nFontOutlineLen = strlen(fontPath);
     1307    fontOutlineAlias = (char *)malloc(sizeof(char)*(nFontOutlineLen+4));
    13081308    sprintf(fontOutlineAlias, "f1=%s",fontPath);
    13091309    PDF_set_parameter(pdf, "FontOutline", fontOutlineAlias);
    13101310    free(fontOutlineAlias);