From cf75fd58b8bccaddbffa0bb791ea3287515dfee5 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Wed, 18 Mar 2015 14:53:02 +0100 Subject: fix Com_ClientListParse() --- src/qcommon/q_shared.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/qcommon') diff --git a/src/qcommon/q_shared.c b/src/qcommon/q_shared.c index f5888633..933df9eb 100644 --- a/src/qcommon/q_shared.c +++ b/src/qcommon/q_shared.c @@ -1537,6 +1537,7 @@ Com_ClientListParse */ void Com_ClientListParse( clientList_t *list, const char *s ) { + char t[ 9 ]; if( !list ) return; list->lo = 0; @@ -1545,5 +1546,7 @@ void Com_ClientListParse( clientList_t *list, const char *s ) return; if( strlen( s ) != 16 ) return; - sscanf( s, "%x%x", &list->hi, &list->lo ); + Q_strncpyz( t, s, 9 ); + sscanf( t, "%x", &list->hi ); + sscanf( s + 8, "%x", &list->lo ); } -- cgit