diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2023-02-21 12:50:45 +0000 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2023-02-21 14:30:03 +0000 |
commit | 682eda59d271ac55754a4499027b7569bcf494bd (patch) | |
tree | 25114f10207abbca67f5acce20015b648098c294 /pdf | |
parent | 3ac5749e0df2e557dc6991e04335d5f99418c3ce (diff) | |
download | ghostpdl-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.c | 4 |
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; } |