Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam 2023-07-03 14:01:10 +01:00
commit f9b0460840

View File

@ -3664,7 +3664,9 @@ format_skip(const char *s, const char *end)
for (; *s != '\0'; s++) { for (; *s != '\0'; s++) {
if (*s == '#' && s[1] == '{') if (*s == '#' && s[1] == '{')
brackets++; brackets++;
if (*s == '#' && strchr(",#{}:", s[1]) != NULL) { if (*s == '#' &&
s[1] != '\0' &&
strchr(",#{}:", s[1]) != NULL) {
s++; s++;
continue; continue;
} }