]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix typo in message.c
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 1 Jun 2010 12:42:59 +0000 (14:42 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:53:51 +0000 (16:53 +0200)
bacula/src/lib/message.c

index def39b8d85734d54904855dbf85c0268053db9bc..cc66d7a652ffd09224770118eac100869442f2c7 100644 (file)
@@ -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;