mirror of
https://github.com/glest/glest-source.git
synced 2025-09-28 16:39:01 +02:00
- round #2 of coverity bug fixes
This commit is contained in:
@@ -75,7 +75,7 @@ void dump_event (irc_session_t * session, const char * event, const char * origi
|
||||
if ( cnt ) {
|
||||
strcat (buf, "|");
|
||||
}
|
||||
strcat (buf, params[cnt]);
|
||||
strncat (buf, params[cnt],std::min((int)strlen(params[cnt]),511));
|
||||
}
|
||||
|
||||
addlog ("Event \"%s\", origin: \"%s\", params: %d [%s]", event, origin ? origin : "NULL", cnt, buf);
|
||||
|
Reference in New Issue
Block a user