summaryrefslogtreecommitdiff
path: root/src/common/crypto.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-02-05 18:33:52 +0000
committerNick Mathewson <nickm@torproject.org>2007-02-05 18:33:52 +0000
commitf02be02356a6cedcec2b01d5046e5d5cba0797ad (patch)
tree1cb0b87b6d886fd4c5db5e8d14807d31b5a67828 /src/common/crypto.c
parent03ef2156c93523cb548ea20b41e554b939964c29 (diff)
downloadtor-f02be02356a6cedcec2b01d5046e5d5cba0797ad.tar.gz
tor-f02be02356a6cedcec2b01d5046e5d5cba0797ad.zip
r11639@catbus: nickm | 2007-02-05 13:33:38 -0500
Add documentation to src/common/*.h; improve documentation for SMARTLIST_FOREACH; remove never-used options and corresponding tests from tor_strpartition. svn:r9483
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r--src/common/crypto.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index 0af144d23f..5f023fa166 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -1023,8 +1023,7 @@ crypto_pk_get_fingerprint(crypto_pk_env_t *pk, char *fp_out, int add_space)
}
base16_encode(hexdigest,sizeof(hexdigest),digest,DIGEST_LEN);
if (add_space) {
- if (tor_strpartition(fp_out, FINGERPRINT_LEN+1, hexdigest, " ", 4,
- NEVER_TERMINATE)<0)
+ if (tor_strpartition(fp_out, FINGERPRINT_LEN+1, hexdigest, " ", 4)<0)
return -1;
} else {
strncpy(fp_out, hexdigest, HEX_DIGEST_LEN+1);