diff options
Diffstat (limited to 'scp.c')
-rw-r--r-- | scp.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -75,7 +75,7 @@ | |||
75 | */ | 75 | */ |
76 | 76 | ||
77 | #include "includes.h" | 77 | #include "includes.h" |
78 | RCSID("$OpenBSD: scp.c,v 1.80 2001/08/13 23:38:54 stevesk Exp $"); | 78 | RCSID("$OpenBSD: scp.c,v 1.81 2001/08/29 20:44:03 markus Exp $"); |
79 | 79 | ||
80 | #include "xmalloc.h" | 80 | #include "xmalloc.h" |
81 | #include "atomicio.h" | 81 | #include "atomicio.h" |
@@ -1049,6 +1049,7 @@ allocbuf(bp, fd, blksize) | |||
1049 | bp->buf = xmalloc(size); | 1049 | bp->buf = xmalloc(size); |
1050 | else | 1050 | else |
1051 | bp->buf = xrealloc(bp->buf, size); | 1051 | bp->buf = xrealloc(bp->buf, size); |
1052 | memset(bp->buf, 0, size); | ||
1052 | bp->cnt = size; | 1053 | bp->cnt = size; |
1053 | return (bp); | 1054 | return (bp); |
1054 | } | 1055 | } |