Compare commits

...

1 commit
master ... pdf

Author SHA1 Message Date
Geoff Greer
3c669d786e Wrong length to strncmp. 2015-04-22 00:55:39 -07:00

View file

@ -290,7 +290,7 @@ int is_binary(const void *buf, const size_t buf_len) {
return 0;
}
if (buf_len >= 4 && strncmp(buf, "%PDF-", 4) == 0) {
if (buf_len >= 4 && strncmp(buf, "%PDF-", 5) == 0) {
/* PDF. This is binary. */
return 1;
}