]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix bad copy/paste in commit c88dccb88 prably a seg fault
authorKern Sibbald <kern@sibbald.com>
Sun, 11 Jul 2010 13:16:18 +0000 (15:16 +0200)
committerKern Sibbald <kern@sibbald.com>
Sun, 11 Jul 2010 13:16:18 +0000 (15:16 +0200)
bacula/src/lib/message.c

index ff4c07603027e4d59971606e0baba6ec9e840528..ac4b77d09036e354eb730fb19997f37fecf44cf8 100644 (file)
@@ -1219,7 +1219,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;