0ac29e
--- bacula-9.0.6.old/src/qt-console/tray-monitor/task.cpp       2018-01-28 15:19:14.055587280 -0600
0ac29e
+++ bacula-9.0.6/src/qt-console/tray-monitor/task.cpp   2018-01-28 15:18:55.151599308 -0600
0ac29e
@@ -992,15 +992,15 @@
0ac29e
     }
0ac29e

0ac29e
     /* cache the file set */
0ac29e
-    res->bs->fsend(".bvfs_update jobid=%s\n", jobs.toUtf8());
0ac29e
+    res->bs->fsend(".bvfs_update jobid=%s\n", bstrdup(jobs.toUtf8()) );
0ac29e
     while (get_next_line(res)) {
0ac29e
         Dmsg2(dbglvl, "<- %d %s\n", res->bs->msglen, curline);
0ac29e
     }
0ac29e

0ac29e
     if (pathid == 0) {
0ac29e
-        res->bs->fsend(".bvfs_lsdirs jobid=%s path=\"\"\n", jobs.toUtf8());
0ac29e
+        res->bs->fsend(".bvfs_lsdirs jobid=%s path=\"\"\n", bstrdup(jobs.toUtf8()));
0ac29e
     } else {
0ac29e
-        res->bs->fsend(".bvfs_lsdirs jobid=%s pathid=%lld\n", jobs.toUtf8(), pathid);
0ac29e
+        res->bs->fsend(".bvfs_lsdirs jobid=%s pathid=%lld\n", bstrdup(jobs.toUtf8()), pathid);
0ac29e
     }
0ac29e

0ac29e
     while (get_next_line(res)) {
0ac29e
@@ -1024,9 +1024,9 @@
0ac29e

0ac29e
     /* then, request files */
0ac29e
     if (pathid == 0) {
0ac29e
-        res->bs->fsend(".bvfs_lsfiles jobid=%s path=\"\"\n", jobs.toUtf8());
0ac29e
+        res->bs->fsend(".bvfs_lsfiles jobid=%s path=\"\"\n", bstrdup(jobs.toUtf8()));
0ac29e
     } else {
0ac29e
-        res->bs->fsend(".bvfs_lsfiles jobid=%s pathid=%lld\n", jobs.toUtf8(), pathid);
0ac29e
+        res->bs->fsend(".bvfs_lsfiles jobid=%s pathid=%lld\n", bstrdup(jobs.toUtf8()), pathid);
0ac29e
     }
0ac29e

0ac29e
     while (get_next_line(res)) {