diff --git a/pdf.c b/pdf.c index 9da7fcc87fc134d73d654a1b7999db4e1b8343a7..9d851f1432f267ba683ac3509ccc7209f8ea8c5a 100644 --- a/pdf.c +++ b/pdf.c @@ -65,7 +65,7 @@ p_return_uint__m(HAllocator *mm__, uint64_t x) bool bytes_eq(HBytes b, const char *s) { - return strncmp(s, b.token, b.len) == 0 && b.len == strlen(s); + return strncmp(s, (const char *)(b.token), b.len) == 0 && b.len == strlen(s); } /* a helper to look up a value in a dictionary */ @@ -1366,7 +1366,7 @@ const char *infile = NULL; * A return value of NULL indicates an empty result. */ const HParsedToken ** -parse_xrefs(const char *input, size_t sz, size_t *nxrefs) +parse_xrefs(const uint8_t *input, size_t sz, size_t *nxrefs) { HParseResult *res = NULL; const HParsedToken **xrefs = NULL; /* empty result */