diff options
author | Peter Palfrader <peter@palfrader.org> | 2008-08-14 12:37:28 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2008-08-14 12:37:28 +0000 |
commit | a6ade97f6774a18c8703502de76b12f951a5732a (patch) | |
tree | 45322bbc1c0686a59290eb48f7edf44632215398 /src/or/dirserv.c | |
parent | 056157984b7b08aa7c6385ff2834b2fb8aea6cce (diff) | |
download | tor-a6ade97f6774a18c8703502de76b12f951a5732a.tar.gz tor-a6ade97f6774a18c8703502de76b12f951a5732a.zip |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index e316ce4225..5b3bf93a70 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); } } |