From 2b38cad97751c7e9f82f3fa9ef516cae4be9102b Mon Sep 17 00:00:00 2001 From: peavey Date: Mon, 16 Jul 2007 11:47:47 +0000 Subject: Use vsnprintf instead of vsprintf. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7442 e03df62e-2008-0410-955e-edbf42e46eb7 --- win/colours.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win/colours.h') 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 */ -- cgit v1.2.3