diff options
Diffstat (limited to 'scp.c')
-rw-r--r-- | scp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: scp.c,v 1.181 2015/01/16 06:40:12 deraadt Exp $ */ | 1 | /* $OpenBSD: scp.c,v 1.182 2015/04/24 01:36:00 deraadt Exp $ */ |
2 | /* | 2 | /* |
3 | * scp - secure remote copy. This is basically patched BSD rcp which | 3 | * scp - secure remote copy. This is basically patched BSD rcp which |
4 | * uses ssh to do the data transfer (instead of using rcmd). | 4 | * uses ssh to do the data transfer (instead of using rcmd). |
@@ -1341,7 +1341,7 @@ allocbuf(BUF *bp, int fd, int blksize) | |||
1341 | if (bp->buf == NULL) | 1341 | if (bp->buf == NULL) |
1342 | bp->buf = xmalloc(size); | 1342 | bp->buf = xmalloc(size); |
1343 | else | 1343 | else |
1344 | bp->buf = xrealloc(bp->buf, 1, size); | 1344 | bp->buf = xreallocarray(bp->buf, 1, size); |
1345 | memset(bp->buf, 0, size); | 1345 | memset(bp->buf, 0, size); |
1346 | bp->cnt = size; | 1346 | bp->cnt = size; |
1347 | return (bp); | 1347 | return (bp); |