From 0503344c6b6418b7e7c05727e6f11e76e03291d1 Mon Sep 17 00:00:00 2001 From: drian Date: Tue, 9 Feb 2021 06:59:12 +0100 Subject: [PATCH] #221 Client must guarantee that data sent over the network complies to the network protocol --- source/src/client.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/src/client.cpp b/source/src/client.cpp index fffa8290..bf747b3c 100644 --- a/source/src/client.cpp +++ b/source/src/client.cpp @@ -395,8 +395,9 @@ void addmsg(int type, const char *fmt, ...) } case 's': { - const char *t = va_arg(args, const char *); - if(t) sendstring(t, p); nums++; break; + sendstring(va_arg(args, const char*), p); + nums++; + break; } } va_end(args);