From: Kern Sibbald Date: Sun, 11 Jul 2010 13:16:18 +0000 (+0200) Subject: Fix bad copy/paste in commit c88dccb88 prably a seg fault X-Git-Tag: Release-5.0.3~82 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b57c9c19016499ed2156be3dc10c07984732aabd;p=bacula%2Fbacula Fix bad copy/paste in commit c88dccb88 prably a seg fault --- diff --git a/bacula/src/lib/message.c b/bacula/src/lib/message.c index ff4c076030..ac4b77d090 100644 --- a/bacula/src/lib/message.c +++ b/bacula/src/lib/message.c @@ -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;