diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2022-04-09 21:54:38 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2022-04-09 22:08:57 +0930 |
commit | 5b18aeffbbd1641962f2ae374a3cb773fe7a6d6e (patch) | |
tree | 372b56c4369e8d49856ac74e98c17a716cb6efc3 /src/cairo-script-surface.c | |
parent | 20a54465c597b4f90ab35d73cab25b6e89dfa9bb (diff) | |
download | cairo-5b18aeffbbd1641962f2ae374a3cb773fe7a6d6e.tar.gz |
Replace use of ctype functions with internal version where only ASCII chars are used
In !309 Taylor R Campbell found a number of instances of ctype
incorrectly passed a signed char. In many cases, where only ASCII
characters are used, the code should have been using the cairo version
of the ctype function to avoid locale issues.
Diffstat (limited to 'src/cairo-script-surface.c')
-rw-r--r-- | src/cairo-script-surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-script-surface.c b/src/cairo-script-surface.c index ca9bafbb7..b96d7d182 100644 --- a/src/cairo-script-surface.c +++ b/src/cairo-script-surface.c @@ -3315,7 +3315,7 @@ ESCAPED_CHAR: _cairo_output_stream_printf (ctx->stream, "\\%c", c); break; default: - if (isprint (c) || isspace (c)) { + if (_cairo_isprint(c)) { _cairo_output_stream_printf (ctx->stream, "%c", c); } else { char buf[4] = { '\\' }; |