summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/scp.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-04-24 01:36:00 +0000
committerderaadt <deraadt@openbsd.org>2015-04-24 01:36:00 +0000
commite3b4f072510741cebbf90dcbdca1b00464b0e33c (patch)
treea66dbb091600eb0a92695b64d0e53d6e21c72901 /usr.bin/ssh/scp.c
parentReplace atoi() usage with strtonum(). OK deraadt@ (diff)
downloadwireguard-openbsd-e3b4f072510741cebbf90dcbdca1b00464b0e33c.tar.xz
wireguard-openbsd-e3b4f072510741cebbf90dcbdca1b00464b0e33c.zip
rename xrealloc() to xreallocarray() since it follows that form.
ok djm
Diffstat (limited to 'usr.bin/ssh/scp.c')
-rw-r--r--usr.bin/ssh/scp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c
index 52d02ebc8d8..e15a69c1202 100644
--- a/usr.bin/ssh/scp.c
+++ b/usr.bin/ssh/scp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scp.c,v 1.181 2015/01/16 06:40:12 deraadt Exp $ */
+/* $OpenBSD: scp.c,v 1.182 2015/04/24 01:36:00 deraadt Exp $ */
/*
* scp - secure remote copy. This is basically patched BSD rcp which
* uses ssh to do the data transfer (instead of using rcmd).
@@ -1300,7 +1300,7 @@ allocbuf(BUF *bp, int fd, int blksize)
if (bp->buf == NULL)
bp->buf = xmalloc(size);
else
- bp->buf = xrealloc(bp->buf, 1, size);
+ bp->buf = xreallocarray(bp->buf, 1, size);
memset(bp->buf, 0, size);
bp->cnt = size;
return (bp);