summaryrefslogtreecommitdiff
path: root/pdf
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2023-02-21 12:50:45 +0000
committerRobin Watts <Robin.Watts@artifex.com>2023-02-21 14:30:03 +0000
commit682eda59d271ac55754a4499027b7569bcf494bd (patch)
tree25114f10207abbca67f5acce20015b648098c294 /pdf
parent3ac5749e0df2e557dc6991e04335d5f99418c3ce (diff)
downloadghostpdl-682eda59d271ac55754a4499027b7569bcf494bd.tar.gz
Fix typo in pdf_detect_language.
This was stopping GPDL using pdfi directly.
Diffstat (limited to 'pdf')
-rw-r--r--pdf/pdftop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf/pdftop.c b/pdf/pdftop.c
index 5a0106a75..a05e7634e 100644
--- a/pdf/pdftop.c
+++ b/pdf/pdftop.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2022 Artifex Software, Inc.
+/* Copyright (C) 2018-2023 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -60,7 +60,7 @@ extern const char gp_file_name_list_separator;
static int
pdf_detect_language(const char *s, int len)
{
- if (len >= 5 && memcmp(s, "%!PDF", 5) == 0)
+ if (len >= 5 && memcmp(s, "%PDF-", 5) == 0)
return 100;
return 0;
}