Minor fixes

This commit is contained in:
UncleRus 2016-12-13 02:05:55 +05:00
parent 50453881e8
commit e5223d6e84
3 changed files with 17 additions and 16 deletions

View file

@ -246,7 +246,7 @@ uint16_t font_measure_string(const font_info_t *fnt, const char *s)
if (!s || !fnt) return 0;
uint16_t res = 0;
while (s)
while (*s)
{
const font_char_desc_t *d = font_get_char_desc(fnt, *s);
if (d)