diff options
author | 2015-04-24 01:36:24 +0000 | |
---|---|---|
committer | 2015-04-24 01:36:24 +0000 | |
commit | 7b8c7b2688d6462ec4892bbd23e08863d2f847b5 (patch) | |
tree | b830e9233a57b72f0a971c1a35a940e5c42f2d33 | |
parent | rename xrealloc() to xreallocarray() since it follows that form. (diff) | |
download | wireguard-openbsd-7b8c7b2688d6462ec4892bbd23e08863d2f847b5.tar.xz wireguard-openbsd-7b8c7b2688d6462ec4892bbd23e08863d2f847b5.zip |
2*len -> use xreallocarray()
ok djm
-rw-r--r-- | usr.bin/ssh/uuencode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/uuencode.c b/usr.bin/ssh/uuencode.c index 5b61f016f58..ade379d6aed 100644 --- a/usr.bin/ssh/uuencode.c +++ b/usr.bin/ssh/uuencode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uuencode.c,v 1.27 2013/05/17 00:13:14 djm Exp $ */ +/* $OpenBSD: uuencode.c,v 1.28 2015/04/24 01:36:24 deraadt Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -80,7 +80,7 @@ dump_base64(FILE *fp, const u_char *data, u_int len) fprintf(fp, "dump_base64: len > 65536\n"); return; } - buf = xmalloc(2*len); + buf = xreallocarray(NULL, 2, len); n = uuencode(data, len, buf, 2*len); for (i = 0; i < n; i++) { fprintf(fp, "%c", buf[i]); |