Do not loop forever if a menu item contains invisible characters,

reported by Thomas Sattler.
pull/1798/head
nicm 2019-06-14 15:35:58 +00:00
parent d1d3bbb458
commit c95cd9ed5e
1 changed files with 2 additions and 1 deletions

View File

@ -791,7 +791,8 @@ format_width(const char *expanded)
} else if (*cp > 0x1f && *cp < 0x7f) {
width++;
cp++;
}
} else
cp++;
}
return (width);
}