From: Wolfgang Bumiller Date: Fri, 8 Jan 2016 11:43:58 +0000 (+0100) Subject: Fix #861: use safer sprintf formatting X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=e34c27f4745c47446962c696105344275d011acf Fix #861: use safer sprintf formatting --- diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm index 60610ce..6cec84b 100644 --- a/src/PVE/INotify.pm +++ b/src/PVE/INotify.pm @@ -648,9 +648,9 @@ sub write_active_workers { my $saved = $task->{saved} ? 1 : 0; if ($task->{endtime}) { if ($task->{status}) { - $raw .= sprintf("$upid $saved %08X $task->{status}\n", $task->{endtime}); + $raw .= sprintf("%s %s %08X %s\n", $upid, $saved, $task->{endtime}, $task->{status}); } else { - $raw .= sprintf("$upid $saved %08X\n", $task->{endtime}); + $raw .= sprintf("%s %s %08X\n", $upid, $saved, $task->{endtime}); } } else { $raw .= "$upid $saved\n";