--- a/filters/kword/pdf/xpdf/xpdf/GlobalParams.cpp
+++ b/filters/kword/pdf/xpdf/xpdf/GlobalParams.cpp
@@ -146,7 +146,7 @@
   displayCIDFonts = new GHash();
   displayNamedCIDFonts = new GHash();
 #ifdef HAVE_PAPER_H
-  char *paperName;
+  const char *paperName;
   const struct paper *paperType;
   paperinit();
   if ((paperName = systempapername())) {
