diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-07 22:18:00 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-07 22:18:00 +0000 |
commit | 66779137bf101cf244cc87136d632e667568ee8d (patch) | |
tree | 7eba226a5abf4e3053c1169d3f58f42f7f2bbf9f /src/or/buffers.c | |
parent | 11b2c6a47617cb60f2f4980f216e6b189701ba26 (diff) | |
download | tor-66779137bf101cf244cc87136d632e667568ee8d.tar.gz tor-66779137bf101cf244cc87136d632e667568ee8d.zip |
Add missing dereference; stop throwing zeroes around.
svn:r2702
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r-- | src/or/buffers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c index b5c0e2f7c7..14280435fb 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -670,7 +670,7 @@ int fetch_from_buf_control(buf_t *buf, uint16_t *len_out, uint16_t *type_out, if (len) { *body_out = tor_malloc(len+1); memcpy(*body_out, buf->mem+4, len); - body_out[len] = '\0'; + (*body_out)[len] = '\0'; } else { *body_out = NULL; } |