diff options
Diffstat (limited to 'transact.c')
-rw-r--r-- | transact.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1355,7 +1355,7 @@ va_dcl va_start(ap); #endif #ifdef HAVE_VSNPRINTF - vsnprintf(buf + strlen(buf), sizeof(buf), fmt, ap); + vsnprintf(buf + strlen(buf), sizeof(buf)-strlen(buf), fmt, ap); #else vsprintf(buf + strlen(buf), fmt, ap); #endif @@ -1445,7 +1445,7 @@ va_dcl va_start(ap); #endif #ifdef HAVE_VSNPRINTF - vsnprintf(buf + strlen(buf), sizeof(buf), fmt, ap); + vsnprintf(buf + strlen(buf), sizeof(buf)-strlen(buf), fmt, ap); #else vsprintf(buf + strlen(buf), fmt, ap); #endif |