Bug #23
This is another small bug in the lbreakout2 network game server. The name string may not be NUL terminated after the strncpy.
static void parse_packet_channel( ServerUser *user, ServerChannel *channel )
{
int id;
unsigned char type;
char name[16];
ServerUser *recv;
ServerGameCtx ctx;
ServerChannel *newchannel;
...
case MSG_ENTER_CHANNEL:
strncpy(name,msg_read_string(),16);
if ( strchr( name, ' ' ) ) {
sprintf( errbuf, _("Channel name must not contain blanks!") );
send_info( user, MSG_ERROR, errbuf );
break;
}