1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-10-28 12:56:18 +00:00

s/strcpy/strlcpy/

This commit is contained in:
Florian Westphal 2005-07-10 21:07:22 +00:00
parent e50d049074
commit c7693f625e

View File

@ -12,7 +12,7 @@
#include "portab.h" #include "portab.h"
static char UNUSED id[] = "$Id: ngircd.c,v 1.106 2005/07/08 23:19:20 alex Exp $"; static char UNUSED id[] = "$Id: ngircd.c,v 1.107 2005/07/10 21:07:22 fw Exp $";
/** /**
* @file * @file
@ -438,7 +438,7 @@ NGIRCd_Rehash( void )
/* Recover old server name: it can't be changed during run-time */ /* Recover old server name: it can't be changed during run-time */
if( strcmp( old_name, Conf_ServerName ) != 0 ) if( strcmp( old_name, Conf_ServerName ) != 0 )
{ {
strcpy( Conf_ServerName, old_name ); strlcpy( Conf_ServerName, old_name, sizeof Conf_ServerName );
Log( LOG_ERR, "Can't change \"ServerName\" on runtime! Ignored new name." ); Log( LOG_ERR, "Can't change \"ServerName\" on runtime! Ignored new name." );
} }