diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-07-02 23:40:03 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-07-02 23:40:03 +0000 |
commit | 7d8de8cd1041ed84f1073c55aa588de88bcd23c3 (patch) | |
tree | f043895ee9396a6b93dd382a23f6ae1137f61192 /src/common | |
parent | d58d4c0db685da2d6575c4bc0a0136a231c29cf9 (diff) | |
download | tor-7d8de8cd1041ed84f1073c55aa588de88bcd23c3.tar.gz tor-7d8de8cd1041ed84f1073c55aa588de88bcd23c3.zip |
More digest/nickname fixes
svn:r2000
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/crypto.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index 93a4738cff..b8882cf21f 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -1448,7 +1448,7 @@ int base16_encode(char *dest, int destlen, const char *src, int srclen) ++src; cp += 2; } - *dest = '\0'; + *cp = '\0'; return 0; } @@ -1484,6 +1484,7 @@ int base16_decode(char *dest, int destlen, const char *src, int srclen) return -1; *(uint8_t*)dest = (v1<<4)|v2; ++dest; + src+=2; } *dest = '\0'; return 0; |