diff --git a/pdf.c b/pdf.c
index d9538902efb819333cbe8871d1b35bb3d6bb3227..69bc056951fb9be5a46b08b6df791b3a47c2f13f 100644
--- a/pdf.c
+++ b/pdf.c
@@ -105,7 +105,7 @@ validate_eq_uint(HParseResult *p, void *u)
  */
 struct Env {
 	const char *infile;
-	const char *input;
+	const uint8_t *input;
 	size_t sz;
 
 	const HParsedToken **xrefs;	/* all xref sections of the file */