]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Use vsnprintf instead of vsprintf.
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 16 Jul 2007 11:47:47 +0000 (11:47 +0000)
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 16 Jul 2007 11:47:47 +0000 (11:47 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7442 e03df62e-2008-0410-955e-edbf42e46eb7

win/colours.h

index 946e725ff5988d7334d14247d92b0a51aba251a3..f30142bf9e8397ff63ed691ad79b31a88fc29c99 100644 (file)
@@ -31,7 +31,7 @@ int printf_c(const char * format, ...)
        /* parse arguments */\r
        va_list ap;\r
        va_start(ap, format);\r
-       vsprintf(message, format, ap);\r
+       vsnprintf(message, 500, format, ap);\r
        va_end(ap);\r
 \r
        /* search for unix-style escape sequences */\r