Skip to content

Commit

Permalink
Network|Fixed: Parsing client's info query on server
Browse files Browse the repository at this point in the history
The "Info?" query from a client was parsed incorrectly: strcmp()
expects null-terminated strings, while the received data was not
null-terminated.
  • Loading branch information
skyjake committed Apr 10, 2012
1 parent f3906c2 commit 673a50a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/sys_network.c
Expand Up @@ -685,7 +685,7 @@ static boolean serverHandleNodeRequest(nodeid_t node, const char *command, int l
}

// Status query?
if(length == 5 && !strcmp(command, "Info?"))
if(length == 5 && !strncmp(command, "Info?", 5))
{
Sv_GetInfo(&info);
Str_Init(&msg);
Expand Down

0 comments on commit 673a50a

Please sign in to comment.