Commit 361eb063 authored by Timo Teräs's avatar Timo Teräs

db: fix control character check to use uint8_t

fixes #10737
parent 1a4f2e94
Pipeline #71094 passed with stage
in 39 seconds
......@@ -2358,8 +2358,8 @@ static const char *format_tmpname(struct apk_package *pkg, struct apk_db_file *f
static int contains_control_character(const char *str)
{
for (; *str; str++) {
if (*str < 0x20 || *str == 0x7f) return 1;
for (const uint8_t *p = (const uint8_t *) str; *p; p++) {
if (*p < 0x20 || *p == 0x7f) return 1;
}
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment