Displaying 1 result from an estimated 1 matches for "maxbufsz".
Did you mean:
maxbufsiz
2004 Jul 14
1
New dynamic window patch (with limits)
...*/
void
@@ -30,6 +36,7 @@
buffer->alloc = len;
buffer->offset = 0;
buffer->end = 0;
+ buffer->unlimited = 0;
}
/* Frees any memory used for the buffer. */
@@ -78,7 +85,8 @@
u_int newlen;
void *p;
- if (len > 0x100000)
+ if ((buffer->unlimited && len > MAXBUFSZ) ||
+ (!buffer->unlimited && len > 0x100000))
fatal("buffer_append_space: len %u not supported", len);
/* If the buffer is empty, start using it from the beginning. */
@@ -107,7 +115,8 @@
/* Increase the size of the buffer and retry. */
newlen = buffer->...