]> andersk Git - openssh.git/commitdiff
- markus@cvs.openbsd.org 2003/08/31 10:26:04
authordjm <djm>
Tue, 2 Sep 2003 12:53:01 +0000 (12:53 +0000)
committerdjm <djm>
Tue, 2 Sep 2003 12:53:01 +0000 (12:53 +0000)
     [progressmeter.c]
     pass file_size + 1 to snprintf: fixes printing of truncated
     file names; fix based on patch/report from sturm@;

ChangeLog
progressmeter.c

index 6dc4b9a2e99ecc008dcce6c1f263f350277ab983..2777bfbae9e58dbab0d42b0cee9398a809e46988 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
    - markus@cvs.openbsd.org 2003/08/29 10:04:36
      [channels.c nchan.c]
      be less chatty; debug -> debug2, cleanup; ok henning@
+   - markus@cvs.openbsd.org 2003/08/31 10:26:04
+     [progressmeter.c]
+     pass file_size + 1 to snprintf: fixes printing of truncated
+     file names; fix based on patch/report from sturm@;
 
 20030829
  - (bal) openbsd-compat/ clean up.  Considate headers, add in Id on our
index 9fe8cfa41f32fc8f4ad6fc5932f7bbc6d14740b1..9d5b42a200022b382c0533b675edefde4161ca8b 100644 (file)
@@ -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"
@@ -140,7 +140,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';
This page took 0.043529 seconds and 5 git commands to generate.