]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/ua_restore.c
Fix buffer overrun in FD
[bacula/bacula] / bacula / src / dird / ua_restore.c
index e39db95151108a21f074becbbdfe37362a0e7ecf..9915136b6512defaf719c2ca61da004846e975af 100644 (file)
@@ -813,7 +813,7 @@ static void insert_one_file_or_dir(UAContext *ua, RESTORE_CTX *rx, char *date, b
       if ((ffd = fopen(p, "rb")) == NULL) {
          berrno be;
          ua->error_msg(_("Cannot open file %s: ERR=%s\n"),
-            p, be.strerror());
+            p, be.bstrerror());
          break;
       }
       while (fgets(file, sizeof(file), ffd)) {