summaryrefslogtreecommitdiff
path: root/win/colours.h
diff options
context:
space:
mode:
Diffstat (limited to 'win/colours.h')
-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 */