diff options
| author | 2004-09-11 20:10:05 +0000 | |
|---|---|---|
| committer | 2004-09-11 20:10:05 +0000 | |
| commit | e7f0a0fb7edf96abbddf72eadb490b5eb22447ec (patch) | |
| tree | 67c9bfeadf64d1622e8ed060a55969ddb6452834 /src/inspircd_util.cpp | |
| parent | Fix to bug #24, stringstream::clear() clears the stream error state not its data (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/inspircd_util.cpp')
| -rw-r--r-- | src/inspircd_util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspircd_util.cpp b/src/inspircd_util.cpp index 54520b1df..a0a7e9f0f 100644 --- a/src/inspircd_util.cpp +++ b/src/inspircd_util.cpp @@ -32,7 +32,7 @@ char *SafeStrncpy (char *dest, const char *src, size_t size) } memset (dest, '\0', size); - strncpy (dest, src, size - 1); + strlcpy (dest, src, size - 1); return (dest); } |
