Fix len for format->split at end of string
parent
9ca6814933
commit
117e6ac9d6
1
format.c
1
format.c
|
@ -68,6 +68,7 @@ bool formatParse(struct Format *format, const wchar_t *split) {
|
||||||
format->str += format->len;
|
format->str += format->len;
|
||||||
if (!format->str[0]) {
|
if (!format->str[0]) {
|
||||||
if (split == format->str && !format->split) {
|
if (split == format->str && !format->split) {
|
||||||
|
format->len = 0;
|
||||||
format->split = true;
|
format->split = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue