diff options
Diffstat (limited to 'pdf/pdf_xref.c')
-rw-r--r-- | pdf/pdf_xref.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_xref.c b/pdf/pdf_xref.c index 844141ad..bd25004e 100644 --- a/pdf/pdf_xref.c +++ b/pdf/pdf_xref.c @@ -22,7 +22,7 @@ pdf_load_version(pdf_xref *xref) if (memcmp(buf, "%PDF-", 5) != 0) return fz_throw("cannot recognize version marker"); - xref->version = fz_atof(buf + 5) * 10; + xref->version = atoi(buf + 5) * 10 + atoi(buf + 7); return fz_okay; } |