From: Eric Bollengier Date: Tue, 25 May 2010 20:11:19 +0000 (+0200) Subject: Fix segfault in action on purge test X-Git-Tag: Release-5.2.1~1336 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=933a559dbfda3b68e02f0a46fa098968549b1eea;p=bacula%2Fbacula Fix segfault in action on purge test --- diff --git a/bacula/src/dird/ua_purge.c b/bacula/src/dird/ua_purge.c index 20ddbf8b52..61e2986c16 100644 --- a/bacula/src/dird/ua_purge.c +++ b/bacula/src/dird/ua_purge.c @@ -616,7 +616,7 @@ static void do_truncate_on_purge(UAContext *ua, MEDIA_DBR *mr, /* Send relabel command, and check for valid response */ while (sd->recv() >= 0) { ua->send_msg("%s", sd->msg); - if (sscanf(sd->msg, "3000 OK label. VolBytes=%llu DVD=%d ", VolBytes, &dvd) == 2) { + if (sscanf(sd->msg, "3000 OK label. VolBytes=%llu DVD=%d ", &VolBytes, &dvd) == 2) { ok = true; } }