diff options
Diffstat (limited to 'net-misc/openssh-x/files/openssh-6.0_p1-hpn-progressmeter.patch')
-rw-r--r-- | net-misc/openssh-x/files/openssh-6.0_p1-hpn-progressmeter.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net-misc/openssh-x/files/openssh-6.0_p1-hpn-progressmeter.patch b/net-misc/openssh-x/files/openssh-6.0_p1-hpn-progressmeter.patch new file mode 100644 index 00000000..56805d12 --- /dev/null +++ b/net-misc/openssh-x/files/openssh-6.0_p1-hpn-progressmeter.patch @@ -0,0 +1,15 @@ +don't go reading random stack values + +already e-mailed to upstream hpn devs + +--- progressmeter.c ++++ progressmeter.c +@@ -183,7 +183,7 @@ + percent = ((float)cur_pos / end_pos) * 100; + else + percent = 100; +- snprintf(buf + strlen(buf), win_size - strlen(buf-8), ++ snprintf(buf + strlen(buf), win_size - strlen(buf) - 8, + " %3d%% ", percent); + + /* amount transferred */ |