aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendcommon.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-02-20 00:30:41 +0000
committerRoger Dingledine <arma@torproject.org>2008-02-20 00:30:41 +0000
commite9474ed28eb79be92eaa68970ea24c41717cecf5 (patch)
tree9f69bb961a3bbc2229652f7b4f300293a262e00b /src/or/rendcommon.c
parent56a7c9238e30555cc536d5cf13664660a8b5bc82 (diff)
downloadtor-e9474ed28eb79be92eaa68970ea24c41717cecf5.tar.gz
tor-e9474ed28eb79be92eaa68970ea24c41717cecf5.zip
if you thought r13604 was a kludge, how about this.
svn:r13605
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r--src/or/rendcommon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c
index 26454d24bd..e7ac4a1f0f 100644
--- a/src/or/rendcommon.c
+++ b/src/or/rendcommon.c
@@ -510,7 +510,7 @@ rend_encode_service_descriptor(rend_service_descriptor_t *desc,
base16_encode(ipoint+1, HEX_DIGEST_LEN+1,
intro->extend_info->identity_digest,
DIGEST_LEN);
- tor_assert(buflen >= cp-*str_out); /* XXX021 This assert is a kludge. */
+ tor_assert(buflen + *str_out >= cp); /* XXX021 This assert is a kludge. */
strlcpy(cp, ipoint, buflen-(cp-*str_out));
cp += strlen(ipoint)+1;
}