aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-07-24 08:51:16 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-07-24 08:51:16 +0000
commit5a4181c31df9e925f3e6c0b978bf54e66629ee52 (patch)
treee09b039904a5c9dad942a9d8a3fbd1c284f3366f /driver.c
parentc31246b522bacd40972c68fdfae270239382c549 (diff)
downloadfetchmail-5a4181c31df9e925f3e6c0b978bf54e66629ee52.tar.gz
fetchmail-5a4181c31df9e925f3e6c0b978bf54e66629ee52.tar.bz2
fetchmail-5a4181c31df9e925f3e6c0b978bf54e66629ee52.zip
Better bounds checking.
svn path=/trunk/; revision=1178
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/driver.c b/driver.c
index c3224b9a..aba38f09 100644
--- a/driver.c
+++ b/driver.c
@@ -1747,7 +1747,11 @@ va_dcl
#else
va_start(ap);
#endif
+#ifdef HAVE_VSNPRINTF
+ vsnprintf(buf + strlen(buf), sizeof(buf), fmt, ap);
+#else
vsprintf(buf + strlen(buf), fmt, ap);
+#endif
va_end(ap);
strcat(buf, "\r\n");
@@ -1817,7 +1821,11 @@ va_dcl
#else
va_start(ap);
#endif
+#ifdef HAVE_VSNPRINTF
+ vsnprintf(buf + strlen(buf), sizeof(buf), fmt, ap);
+#else
vsprintf(buf + strlen(buf), fmt, ap);
+#endif
va_end(ap);
strcat(buf, "\r\n");