diff options
-rw-r--r-- | src/common/crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |