From 117e6ac9d62cbc4ed18a9087d5bc99e254885fdd Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Thu, 13 Sep 2018 16:15:16 -0400 Subject: Fix len for format->split at end of string --- format.c | 1 + 1 file changed, 1 insertion(+) (limited to 'format.c') diff --git a/format.c b/format.c index cb9cb15..8c2b0ed 100644 --- a/format.c +++ b/format.c @@ -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; } -- cgit 1.4.1