summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-encoding.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/pdf/pdf-encoding.c')
-rw-r--r--source/pdf/pdf-encoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-encoding.c b/source/pdf/pdf-encoding.c
index f23747dc..ca15b456 100644
--- a/source/pdf/pdf-encoding.c
+++ b/source/pdf/pdf-encoding.c
@@ -63,7 +63,7 @@ pdf_lookup_agl(const char *name)
else if (buf[0] == 'a' && buf[1] != 0 && buf[2] != 0)
code = strtol(buf + 1, NULL, 10);
- return (code >= 0 && code <= 0x10ffff) ? code : 0;
+ return (code > 0 && code <= 0x10ffff) ? code : 0xFFFD;
}
static const char *empty_dup_list[] = { 0 };