summaryrefslogtreecommitdiff
path: root/lib/String.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/String.cc')
-rw-r--r--lib/String.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/String.cc b/lib/String.cc
index 4367ebc..c3e8c07 100644
--- a/lib/String.cc
+++ b/lib/String.cc
@@ -54,7 +54,11 @@ String::String(const char * s, ...) {
#endif
va_start(ap, s);
+#ifdef HAVE_VSNPRINTF
vsnprintf(t, BUFSIZ, s, ap);
+#else
+ vsprintf(t, s, ap);
+#endif
str = Base::strdup(t);
va_end(ap);
siz = ::strlen(str);