From a248e8c9a34d31406328ded9f53f37b610ec1290 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 22 Jul 2017 15:09:28 -0600 Subject: util.c: atos_symbolize: Don't use locale-dependent fcns It very likely isn't an issue here, but the core should not have unintentional locale-dependent code . --- util.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'util.c') diff --git a/util.c b/util.c index 4584c735bc..0fdea7d6c3 100644 --- a/util.c +++ b/util.c @@ -6096,17 +6096,17 @@ static const char* atos_parse(const char* p, UV uv; /* Skip trailing whitespace. */ - while (p > start && isspace(*p)) p--; + while (p > start && isSPACE(*p)) p--; /* Now we should be at the close paren. */ if (p == start || *p != ')') return NULL; close_paren = p; p--; /* Now we should be in the line number. */ - if (p == start || !isdigit(*p)) + if (p == start || !isDIGIT(*p)) return NULL; /* Skip over the digits. */ - while (p > start && isdigit(*p)) + while (p > start && isDIGIT(*p)) p--; /* Now we should be at the colon. */ if (p == start || *p != ':') @@ -6151,7 +6151,7 @@ static void atos_symbolize(atos_context* ctx, * the object name (used as "-o '%s'" ), leave since at least * partially the user controls it. */ for (p = ctx->fname; *p; p++) { - if (*p == '\'' || iscntrl(*p)) { + if (*p == '\'' || isCNTRL(*p)) { ctx->unavail = TRUE; return; } -- cgit v1.2.1