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-7.0.0~1801 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3d53e968f880c7b4b25ac9af4f15c4d1a5297331;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; } }