summaryrefslogtreecommitdiff
path: root/net-misc/openssh-x/files/openssh-5.6_p1-hpn-progressmeter.patch
blob: 5fe18dfc9ac00bb2c908d86c10dc46c159b0e2c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
don't go reading random stack values

already e-mailed to upstream hpn devs

--- progressmeter.c
+++ progressmeter.c
@@ -183,7 +183,7 @@
 	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 */