summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-16 11:47:47 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-16 11:47:47 +0000
commit2b38cad97751c7e9f82f3fa9ef516cae4be9102b (patch)
tree97085796e8474c0b520efc8e1f8ecc8c03f7ea07
parentc773dc8d0c9ab4873aa850bd31f14685bdfb6c07 (diff)
Use vsnprintf instead of vsprintf.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7442 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--win/colours.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/colours.h b/win/colours.h
index 946e725ff..f30142bf9 100644
--- a/win/colours.h
+++ b/win/colours.h
@@ -31,7 +31,7 @@ int printf_c(const char * format, ...)
/* parse arguments */
va_list ap;
va_start(ap, format);
- vsprintf(message, format, ap);
+ vsnprintf(message, 500, format, ap);
va_end(ap);
/* search for unix-style escape sequences */