Fix len for format->split at end of string

master
Curtis McEnroe 2018-09-13 16:15:16 -04:00
parent 9ca6814933
commit 117e6ac9d6
No known key found for this signature in database
GPG Key ID: CEA2F97ADCFCD77C
1 changed files with 1 additions and 0 deletions

View File

@ -68,6 +68,7 @@ bool formatParse(struct Format *format, const wchar_t *split) {
format->str += format->len;
if (!format->str[0]) {
if (split == format->str && !format->split) {
format->len = 0;
format->split = true;
return true;
}