From mcufont upstream: Fix inconsistency between UTF8 and other encodings

This commit is contained in:
inmarket 2013-07-30 14:19:50 +10:00
parent 0ee1b20451
commit 99642e2a99

View file

@ -75,11 +75,16 @@ void mf_rewind(mf_str *str)
#else #else
mf_char mf_getchar(mf_str *str) { mf_char mf_getchar(mf_str *str)
{
if (!(**str))
return 0;
else
return *(*str)++; return *(*str)++;
} }
void mf_rewind(mf_str *str) { void mf_rewind(mf_str *str)
{
(*str)--; (*str)--;
} }