summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/qcommon/q_shared.c5
1 files changed, 4 insertions, 1 deletions
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 );
}