From 80160d740fbe323bc189ef490c53c0fbbc151d16 Mon Sep 17 00:00:00 2001 From: Eric House Date: Sun, 27 Sep 2020 14:23:39 -0700 Subject: [PATCH] null-terminate words buffer --- xwords4/common/model.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xwords4/common/model.c b/xwords4/common/model.c index 6320ff76d..ab8a64686 100644 --- a/xwords4/common/model.c +++ b/xwords4/common/model.c @@ -2674,6 +2674,7 @@ model_listWordsThrough( ModelCtxt* model, XWEnv xwe, XP_U16 col, XP_U16 row, XP_LOGFF( "nWords: %d", lwtInfo.nWords ); found = 0 < lwtInfo.nWords; } + stream_putU8( stream, '\0' ); /* null-terminate for good luck */ model_destroy( tmpModel, xwe ); return found;