Don't output the terminating '\0' (already fixed in OpenSSH CVS)

This commit is contained in:
Dag-Erling Smørgrav 2004-01-09 12:57:36 +00:00
parent 8cf8104b8f
commit 002696701b

View File

@ -200,7 +200,7 @@ refresh_progress_meter(void)
strlcat(buf, " ", win_size);
}
atomicio(vwrite, STDOUT_FILENO, buf, win_size);
atomicio(vwrite, STDOUT_FILENO, buf, win_size - 1);
last_update = now;
}