From: Eric Bollengier Date: Tue, 1 Jun 2010 12:42:59 +0000 (+0200) Subject: Fix typo in message.c X-Git-Tag: Release-7.0.0~1787 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=27b48b6398f1a2d056bc3ffcc60f75c96fa99689;p=bacula%2Fbacula Fix typo in message.c --- diff --git a/bacula/src/lib/message.c b/bacula/src/lib/message.c index def39b8d85..cc66d7a652 100644 --- a/bacula/src/lib/message.c +++ b/bacula/src/lib/message.c @@ -1221,7 +1221,7 @@ Jmsg(JCR *jcr, int type, utime_t mtime, const char *fmt,...) /* The watchdog thread can't use Jmsg directly, we always queued it */ if (is_watchdog()) { va_start(arg_ptr, fmt); - bvsnprintf(rbuf+len, sizeof(rbuf)-len, fmt, arg_ptr); + bvsnprintf(rbuf, sizeof(rbuf), fmt, arg_ptr); va_end(arg_ptr); Qmsg(jcr, type, mtime, "%s", rbuf); return;