diff options
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/dvipdfmx/src/specials.c | 4 | ||||
-rw-r--r-- | Build/source/texk/xdvipdfmx/src/specials.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/dvipdfmx/src/specials.c b/Build/source/texk/dvipdfmx/src/specials.c index ac938c0b61b..edb0159a771 100644 --- a/Build/source/texk/dvipdfmx/src/specials.c +++ b/Build/source/texk/dvipdfmx/src/specials.c @@ -530,7 +530,7 @@ print_error (const char *name, struct spc_env *spe, struct spc_arg *ap) if (isprint(*p)) ebuf[i++] = *p; else if (i + 4 < 63) - i += sprintf(ebuf + i, "\\x%02x", *p); + i += sprintf(ebuf + i, "\\x%02x", (unsigned char)*p); else break; } @@ -546,7 +546,7 @@ print_error (const char *name, struct spc_env *spe, struct spc_arg *ap) if (isprint(*p)) ebuf[i++] = *p; else if (i + 4 < 63) - i += sprintf(ebuf + i, "\\x%02x", *p); + i += sprintf(ebuf + i, "\\x%02x", (unsigned char)*p); else break; } diff --git a/Build/source/texk/xdvipdfmx/src/specials.c b/Build/source/texk/xdvipdfmx/src/specials.c index 168504c3728..c9086513a13 100644 --- a/Build/source/texk/xdvipdfmx/src/specials.c +++ b/Build/source/texk/xdvipdfmx/src/specials.c @@ -540,7 +540,7 @@ print_error (const char *name, struct spc_env *spe, struct spc_arg *ap) if (isprint(*p)) ebuf[i++] = *p; else if (i + 4 < 63) - i += sprintf(ebuf + i, "\\x%02x", *p); + i += sprintf(ebuf + i, "\\x%02x", (unsigned char)*p); else break; } @@ -556,7 +556,7 @@ print_error (const char *name, struct spc_env *spe, struct spc_arg *ap) if (isprint(*p)) ebuf[i++] = *p; else if (i + 4 < 63) - i += sprintf(ebuf + i, "\\x%02x", *p); + i += sprintf(ebuf + i, "\\x%02x", (unsigned char)*p); else break; } |