summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-09-13 16:15:16 -0400
committerJune McEnroe <june@causal.agency>2018-09-13 16:15:16 -0400
commit117e6ac9d62cbc4ed18a9087d5bc99e254885fdd (patch)
treed53d09fd0d7c137c7334563df074afc1200e28c2
parentAvoid uninitialized x in uiRead (diff)
downloadcatgirl-117e6ac9d62cbc4ed18a9087d5bc99e254885fdd.tar.gz
catgirl-117e6ac9d62cbc4ed18a9087d5bc99e254885fdd.zip
Fix len for format->split at end of string
-rw-r--r--format.c1
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;
 		}
/bounce.c?id=d20bda982a9cedfcdfeb677a436ec8a730364650&follow=1'>Call clientConsume before clientRecvJune McEnroe 2019-11-06Use -l:filename in Linux.mkJune McEnroe 2019-11-06Fix compat.h for #defined strlcpyJune McEnroe 2019-11-06Allow unsetting LIBRESSL_PREFIXJune McEnroe 2019-11-06Document calico service configurationJune McEnroe 2019-11-06Document SASL EXTERNAL configuration in more detailJune McEnroe 2019-11-06Document pounce service configurationJune McEnroe 2019-11-06Mention Darwin and GNU/Linux in READMEJune McEnroe 2019-11-06Assume LibreSSL from brew on DarwinJune McEnroe 2019-11-06Remove -DNO_EXPLICIT_BZERO from Darwin.mkJune McEnroe 2019-11-06Don't install rc scripts or dirs on LinuxJune McEnroe