diff options
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r-- | src/helperfuncs.cpp | 4 |
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) |