diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-04-23 06:11:20 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-04-23 06:11:20 +0000 |
commit | 1999e804a26d0811e2c4698a5af66013f25ee861 (patch) | |
tree | aed32352ed9c5694d9822190b6ad3706b2c9896c /lib/libcrypto | |
parent | 2c353aeff1331c041c51ad5896dd493eec417af2 (diff) |
Do not need to buf[0] = 0 before strlcpy(buf, ...
Diffstat (limited to 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/bio/b_dump.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libcrypto/bio/b_dump.c b/lib/libcrypto/bio/b_dump.c index 0943e9006df..0214addc8be 100644 --- a/lib/libcrypto/bio/b_dump.c +++ b/lib/libcrypto/bio/b_dump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: b_dump.c,v 1.20 2014/11/11 19:26:12 miod Exp $ */ +/* $OpenBSD: b_dump.c,v 1.21 2015/04/23 06:11:19 deraadt Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -107,7 +107,6 @@ BIO_dump_indent_cb(int (*cb)(const void *data, size_t len, void *u), if ((rows * dump_width) < len) rows++; for (i = 0; i < rows; i++) { - buf[0] = '\0'; /* start with empty string */ strlcpy(buf, str, sizeof buf); snprintf(tmp, sizeof tmp, "%04x - ", i*dump_width); strlcat(buf, tmp, sizeof buf); |