summaryrefslogtreecommitdiff
path: root/lib/String.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/String.cc')
-rw-r--r--lib/String.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/String.cc b/lib/String.cc
index d64f065..d587b75 100644
--- a/lib/String.cc
+++ b/lib/String.cc
@@ -51,7 +51,7 @@ const char * String::set(char * s, ...) {
va_list ap;
va_start(ap, s);
- vsprintf(t, s, ap);
+ vsnprintf(t, BUFSIZ, s, ap);
free(str);
str = ::strdup(t);
va_end(ap);