summaryrefslogtreecommitdiffstats
path: root/lib/bind/irs/irp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bind/irs/irp.c')
-rw-r--r--lib/bind/irs/irp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bind/irs/irp.c b/lib/bind/irs/irp.c
index 85a053d..aae4e7b 100644
--- a/lib/bind/irs/irp.c
+++ b/lib/bind/irs/irp.c
@@ -16,7 +16,7 @@
*/
#if !defined(LINT) && !defined(CODECENTER)
-static const char rcsid[] = "$Id: irp.c,v 1.6.18.3 2006/03/10 00:20:08 marka Exp $";
+static const char rcsid[] = "$Id: irp.c,v 1.6.18.5 2008/02/28 05:49:37 marka Exp $";
#endif
/* Imports */
@@ -528,7 +528,8 @@ irs_irp_send_command(struct irp_p *pvt, const char *fmt, ...) {
}
va_start(ap, fmt);
- todo = vsprintf(buffer, fmt, ap);
+ (void) vsprintf(buffer, fmt, ap);
+ todo = strlen(buffer);
va_end(ap);
if (todo > (int)sizeof(buffer) - 3) {
syslog(LOG_CRIT, "memory overrun in irs_irp_send_command()");
OpenPOWER on IntegriCloud