From dfc44e5d3696aa4e8bc6ff4b6b82f76bf7da8161 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 20 Jun 2020 09:19:18 +0000 Subject: [PATCH] Print a warning message when we try to make sense of an invalid/corrupt infostring. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5708 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/common/common.c b/engine/common/common.c index 31abcd043..5ad4473d3 100644 --- a/engine/common/common.c +++ b/engine/common/common.c @@ -6596,6 +6596,9 @@ void InfoBuf_FromString(infobuf_t *info, const char *infostring, qboolean append { if (!append) InfoBuf_Clear(info, true); + if (*infostring && *infostring != '\\') + Con_Printf("InfoBuf_FromString: invalid infostring \"%s\"\n", infostring); + //all keys must start with a backslash while (*infostring++ == '\\') {