From d9967c2638052730c6eeb1624586d633d6482003 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Sat, 27 Apr 2024 19:54:23 +0000 Subject: Avoid ctype abuse. fix https://github.com/ledger/ledger/issues/2338 fix https://github.com/ledger/ledger/issues/2340 --- src/utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils.cc') diff --git a/src/utils.cc b/src/utils.cc index 6ca7eeb7..1cc19ca0 100644 --- a/src/utils.cc +++ b/src/utils.cc @@ -516,7 +516,7 @@ strings_list split_arguments(const char * line) char in_quoted_string = '\0'; for (const char * p = line; *p; p++) { - if (! in_quoted_string && std::isspace(*p)) { + if (! in_quoted_string && std::isspace(static_cast(*p))) { if (q != buf) { *q = '\0'; args.push_back(buf); -- cgit v1.2.3