From ef0720f909aff7ce30656e9a826dbfd696f1a74f Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 20 Jan 2007 03:35:03 +0000 Subject: r9689@catbus: nickm | 2007-01-19 22:34:20 -0500 And remove another strcpy. svn:r9375 --- src/common/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/crypto.c b/src/common/crypto.c index 0cc393be3e..00f3cf4600 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -1027,7 +1027,7 @@ crypto_pk_get_fingerprint(crypto_pk_env_t *pk, char *fp_out, int add_space) NEVER_TERMINATE)<0) return -1; } else { - strcpy(fp_out, hexdigest); + strncpy(fp_out, hexdigest, HEX_DIGEST_LEN+1); } return 0; } -- cgit v1.2.3-54-g00ecf