aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2008-08-14 12:37:28 +0000
committerPeter Palfrader <peter@palfrader.org>2008-08-14 12:37:28 +0000
commita6ade97f6774a18c8703502de76b12f951a5732a (patch)
tree45322bbc1c0686a59290eb48f7edf44632215398 /src/or/dirserv.c
parent056157984b7b08aa7c6385ff2834b2fb8aea6cce (diff)
downloadtor-a6ade97f6774a18c8703502de76b12f951a5732a.tar
tor-a6ade97f6774a18c8703502de76b12f951a5732a.tar.gz
Properly move forward char pointer after appending stuff to the string
svn:r16540
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index e316ce422..5b3bf93a7 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -1943,6 +1943,7 @@ routerstatus_format_entry(char *buf, size_t buf_len,
log_warn(LD_BUG, "Unable to print router version.");
return -1;
}
+ cp += strlen(cp);
}
if (!v2_format) {
@@ -1953,6 +1954,7 @@ routerstatus_format_entry(char *buf, size_t buf_len,
log_warn(LD_BUG, "Not enough space in buffer.");
return -1;
}
+ cp += strlen(cp);
summary = policy_summarize(desc->exit_policy);
if (summary) {
@@ -1961,6 +1963,7 @@ routerstatus_format_entry(char *buf, size_t buf_len,
log_warn(LD_BUG, "Not enough space in buffer.");
return -1;
}
+ cp += strlen(cp);
tor_free(summary);
}
}