summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-26 21:55:04 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-26 21:55:04 +0000
commitf063862950bfa3c5a30f9e6101bd2d74b359b6c0 (patch)
tree62820177f49759bacd86c12bc124a878677e3ade /src/helperfuncs.cpp
parentda3134547f97127bc92eeac76a9a8dece4a3e07e (diff)
Valgrind fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3353 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 6b7178e22..14455ed9b 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -340,12 +340,12 @@ void WriteTo(userrec *source, userrec *dest,char *data, ...)
}
if (!IS_LOCAL(dest))
return;
- char textbuffer[MAXBUF],tb[MAXBUF];
+ char textbuffer[MAXBUF];
va_list argsPtr;
va_start (argsPtr, data);
vsnprintf(textbuffer, MAXBUF, data, argsPtr);
va_end(argsPtr);
- chop(tb);
+ chop(textbuffer);
// if no source given send it from the server.
if (!source)