summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-01-20 03:35:03 +0000
committerNick Mathewson <nickm@torproject.org>2007-01-20 03:35:03 +0000
commitef0720f909aff7ce30656e9a826dbfd696f1a74f (patch)
tree38149af7965b2500ead42bec97b92f126c08e265 /src/common
parentc57ef84fc51c16123f22762cc832e340b6804e46 (diff)
downloadtor-ef0720f909aff7ce30656e9a826dbfd696f1a74f.tar.gz
tor-ef0720f909aff7ce30656e9a826dbfd696f1a74f.zip
r9689@catbus: nickm | 2007-01-19 22:34:20 -0500
And remove another strcpy. svn:r9375
Diffstat (limited to 'src/common')
-rw-r--r--src/common/crypto.c2
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;
}