From 3d53e968f880c7b4b25ac9af4f15c4d1a5297331 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 25 May 2010 22:11:19 +0200 Subject: [PATCH] Fix segfault in action on purge test --- bacula/src/dird/ua_purge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.39.5