diff options
author | Curtis McEnroe | 2018-09-13 16:15:16 -0400 |
---|---|---|
committer | Curtis McEnroe | 2018-09-13 16:15:16 -0400 |
commit | 117e6ac9d62cbc4ed18a9087d5bc99e254885fdd (patch) | |
tree | d53d09fd0d7c137c7334563df074afc1200e28c2 /format.c | |
parent | 9ca68149337f49135c849b6c5dc85a541f30ae5a (diff) |
Fix len for format->split at end of string
Diffstat (limited to 'format.c')
-rw-r--r-- | format.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |