diff options
Diffstat (limited to 'src/servers.cpp')
-rw-r--r-- | src/servers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/servers.cpp b/src/servers.cpp index e64fab488..2d1f70ed8 100644 --- a/src/servers.cpp +++ b/src/servers.cpp @@ -22,7 +22,7 @@ serverrec::serverrec() { - strcpy(name,""); + strlcpy(name,"",256); pingtime = 0; lastping = time(NULL); usercount_i = usercount = opercount = version = 0; @@ -40,7 +40,7 @@ serverrec::~serverrec() serverrec::serverrec(char* n, long ver, bool jupe) { - strcpy(name,n); + strlcpy(name,n,256); lastping = time(NULL); usercount_i = usercount = opercount = 0; version = ver; |