]> andersk Git - openssh.git/blobdiff - scp.c
- djm@cvs.openbsd.org 2006/03/25 01:13:23
[openssh.git] / scp.c
diff --git a/scp.c b/scp.c
index bf9db97cf49c0feb5189302274d5245a972560ef..3068b8d32ceb571b0c829c778ce949efbd464328 100644 (file)
--- a/scp.c
+++ b/scp.c
@@ -1190,7 +1190,7 @@ allocbuf(BUF *bp, int fd, int blksize)
        if (bp->buf == NULL)
                bp->buf = xmalloc(size);
        else
-               bp->buf = xrealloc(bp->buf, size);
+               bp->buf = xrealloc(bp->buf, 1, size);
        memset(bp->buf, 0, size);
        bp->cnt = size;
        return (bp);
This page took 0.03765 seconds and 4 git commands to generate.