version 1.16.4.2, 2003/09/16 21:30:49 |
version 1.16.4.3, 2004/03/04 18:18:15 |
|
|
{ |
{ |
if (buffer->alloc > 0) { |
if (buffer->alloc > 0) { |
memset(buffer->buf, 0, buffer->alloc); |
memset(buffer->buf, 0, buffer->alloc); |
|
buffer->alloc = 0; |
xfree(buffer->buf); |
xfree(buffer->buf); |
} |
} |
} |
} |
|
|
goto restart; |
goto restart; |
} |
} |
/* Increase the size of the buffer and retry. */ |
/* Increase the size of the buffer and retry. */ |
|
|
newlen = buffer->alloc + len + 32768; |
newlen = buffer->alloc + len + 32768; |
if (newlen > 0xa00000) |
if (newlen > 0xa00000) |
fatal("buffer_append_space: alloc %u not supported", |
fatal("buffer_append_space: alloc %u not supported", |
|
|
void |
void |
buffer_dump(Buffer *buffer) |
buffer_dump(Buffer *buffer) |
{ |
{ |
int i; |
u_int i; |
u_char *ucp = buffer->buf; |
u_char *ucp = buffer->buf; |
|
|
for (i = buffer->offset; i < buffer->end; i++) { |
for (i = buffer->offset; i < buffer->end; i++) { |