diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-12-13 19:34:01 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-12-15 22:31:11 -0500 |
commit | b8a7bad7995fceee83e61f2f403685d42d8759ce (patch) | |
tree | d04e748ba1175325b01887439e674a7ab4df1c02 /src/or/buffers.c | |
parent | 785086cfbaf15a78a921f5589a76517b1d4840b1 (diff) | |
download | tor-b8a7bad7995fceee83e61f2f403685d42d8759ce.tar.gz tor-b8a7bad7995fceee83e61f2f403685d42d8759ce.zip |
Make payloads into uint8_t.
This will avoid some signed/unsigned assignment-related bugs.
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 b96b82de5a..f26c202198 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -1024,7 +1024,7 @@ fetch_var_cell_from_buf(buf_t *buf, var_cell_t **out, int linkproto) result->circ_id = ntohs(get_uint16(hdr)); buf_remove_from_front(buf, VAR_CELL_HEADER_SIZE); - peek_from_buf(result->payload, length, buf); + peek_from_buf((char*) result->payload, length, buf); buf_remove_from_front(buf, length); check(); |