Commit bb4d52ca authored by Stas Korobeynikov's avatar Stas Korobeynikov Committed by Pavel Vainerman

fix buffer field

parent beedc7c4
...@@ -2179,13 +2179,13 @@ void nx_dump_buffer(Buffer *buffer) ...@@ -2179,13 +2179,13 @@ void nx_dump_buffer(Buffer *buffer)
unsigned int i; unsigned int i;
unsigned int l; unsigned int l;
unsigned char *p = buffer->buf; unsigned char *p = buffer->d;
char line[136]; char line[136];
debug("---"); debug("---");
for (i = buffer->offset, l = 0; i < buffer->end; i++, l++) for (i = buffer->off, l = 0; i < buffer->size; i++, l++)
{ {
line[l] = p[i]; line[l] = p[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment