summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2009-10-18 23:06:39 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2009-10-18 23:06:39 +0200
commit583eda7d3132216ec5cfb5f9dcabd845109cdc26 (patch)
treed8f50fc191358988ffd8bb2c8c43ff76fb3c8fb6 /lib
parentf0322e2a0ebfca336049ab824f76204874257ba4 (diff)
Fixing some codepath.
Diffstat (limited to 'lib')
-rw-r--r--lib/String.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/String.cc b/lib/String.cc
index aee7b8d..14195f6 100644
--- a/lib/String.cc
+++ b/lib/String.cc
@@ -155,7 +155,7 @@ const char * String::set(const char * s, va_list ap) {
r = str;
#else // !HAVE_VASPRINTF
#ifdef HAVE_VSNPRINTF
- char String::t[BUFSIZ + 1];
+ char t[BUFSIZ + 1];
vsnprintf(t, BUFSIZ, s, ap);
str = Base::strdup(r = t);
#else // !HAVE_VSNPRINTF
@@ -164,12 +164,12 @@ const char * String::set(const char * s, va_list ap) {
r = str = (char *) malloc(_vscprintf(s, ap) + 1);
vsprintf(str, s, ap);
#else
- char String::t[BUFSIZ + 1];
+ char t[BUFSIZ + 1];
_vsnprintf(t, BUFSIZ, s, ap);
str = Base::strdup(r = t);
#endif
#else
- char String::t[BUFSIZ + 1];
+ char t[BUFSIZ + 1];
vsprintf(t, s, ap);
str = Base::strdup(r = t);
#endif