diff options
| author | Florian Westphal <fw@strlen.de> | 2005-07-10 21:07:22 +0000 |
|---|---|---|
| committer | Florian Westphal <fw@strlen.de> | 2005-07-10 21:07:22 +0000 |
| commit | c7693f625e9d6c5a7c8aea7a8c8bb5c5a5378843 (patch) | |
| tree | fe61a09aa77b1644f01ea93c25e5a64c03ea6c2f /src | |
| parent | e50d04907485e027afc466059f02a58ef1c586ac (diff) | |
| download | ngircd-c7693f625e9d6c5a7c8aea7a8c8bb5c5a5378843.tar.gz ngircd-c7693f625e9d6c5a7c8aea7a8c8bb5c5a5378843.zip | |
s/strcpy/strlcpy/
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/ngircd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/ngircd.c b/src/ngircd/ngircd.c index d774f791..e7183e31 100644 --- a/src/ngircd/ngircd.c +++ b/src/ngircd/ngircd.c @@ -12,7 +12,7 @@ #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 @@ -438,7 +438,7 @@ NGIRCd_Rehash( void ) /* Recover old server name: it can't be changed during run-time */ 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." ); } |