diff options
Diffstat (limited to 'src/database.c')
-rw-r--r-- | src/database.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database.c b/src/database.c index d69bfa0..4b53732 100644 --- a/src/database.c +++ b/src/database.c @@ -2406,8 +2406,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; } |