libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit a3e6889feea0b719996ee26b766754cf77501741
parent d906529cdbe37d2591842e1a3adfd047036b510b
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 13 Nov 2009 10:51:43 +0000

should be 0-terminator, but does not really matter since we set size, still cleaner

Diffstat:
Msrc/plugins/pdfextractor.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/plugins/pdfextractor.c b/src/plugins/pdfextractor.c @@ -167,7 +167,7 @@ stringDecode (const char *pdfString, size_t * size) ret[w++] = pdfString[r]; } } - ret[w] = '/'; + ret[w] = '\0'; *size = w; return ret; case '<': @@ -182,7 +182,7 @@ stringDecode (const char *pdfString, size_t * size) if (i + 1 < slen) hex[1] = pdfString[i + 2]; if ((1 != sscanf (hex, "%x", &val)) && - (1 != sscanf (hex, "%X", &val))) + (1 != sscanf (hex, "%X", &val))) { free (ret); return NULL;