diff options
author | Přemysl Janouch <p@janouch.name> | 2018-10-03 22:15:39 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2018-10-03 22:17:05 +0200 |
commit | c77a9c052a8db7493935bd807ed1308aea149473 (patch) | |
tree | 0c8a855a8898f62b2baf9a732b5f12e5a038ed28 /pdf-simple-sign.cpp | |
parent | 54d86cf25bd1c6de28740940b697d448d75e8add (diff) | |
download | pdf-simple-sign-c77a9c052a8db7493935bd807ed1308aea149473.tar.gz pdf-simple-sign-c77a9c052a8db7493935bd807ed1308aea149473.tar.xz pdf-simple-sign-c77a9c052a8db7493935bd807ed1308aea149473.zip |
Fix parsing of hex strings
Diffstat (limited to 'pdf-simple-sign.cpp')
-rw-r--r-- | pdf-simple-sign.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pdf-simple-sign.cpp b/pdf-simple-sign.cpp index 1755dc9..89b29a4 100644 --- a/pdf-simple-sign.cpp +++ b/pdf-simple-sign.cpp @@ -161,6 +161,7 @@ struct pdf_lexer { buf.clear(); } } + p++; if (!buf.empty()) value += char(std::stoi(buf + '0', nullptr, 16)); return {pdf_object::STRING, value}; } |