diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-09-11 20:10:05 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-09-11 20:10:05 +0000 |
commit | e7f0a0fb7edf96abbddf72eadb490b5eb22447ec (patch) | |
tree | 67c9bfeadf64d1622e8ed060a55969ddb6452834 /src/servers.cpp | |
parent | ea36f2bb1b8b1bf03b8615672866f93697caff75 (diff) |
Security audit based on RATS output
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@855 e03df62e-2008-0410-955e-edbf42e46eb7
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; |