diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/progressmeter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/progressmeter.c b/usr.bin/ssh/progressmeter.c index 03bace47014..4f74ff54d76 100644 --- a/usr.bin/ssh/progressmeter.c +++ b/usr.bin/ssh/progressmeter.c @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: progressmeter.c,v 1.13 2003/07/31 22:34:03 markus Exp $"); +RCSID("$OpenBSD: progressmeter.c,v 1.14 2003/08/31 10:26:04 markus Exp $"); #include "progressmeter.h" #include "atomicio.h" @@ -139,7 +139,7 @@ refresh_progress_meter(void) buf[0] = '\0'; file_len = win_size - 35; if (file_len > 0) { - len = snprintf(buf, file_len, "\r%s", file); + len = snprintf(buf, file_len + 1, "\r%s", file); for (i = len; i < file_len; i++ ) buf[i] = ' '; buf[file_len] = '\0'; |