bool leading_spaces;
PAIR_LIST *t;
+ fr_sbuff_extend_lowat(NULL, &sbuff, 1024);
+
/*
* If the line is empty or has only comments,
* then we don't care about leading spaces.
comma = false;
check_item:
+ fr_sbuff_extend_lowat(NULL, &sbuff, 1024);
+
/*
* Skip spaces before the item, and allow the
* check list to end on comment or LF.
comma = false;
reply_item:
+ fr_sbuff_extend_lowat(NULL, &sbuff, 1024);
+
/*
* Reply items start with spaces. If there's no
* spaces, then the current entry is done. Add
remaining = (len - fr_sbuff_used_total(&our_in));
- if (!fr_sbuff_extend_lowat(NULL, &our_in, 32)) break;
+ if (!fr_sbuff_extend(&our_in)) break;
chunk_len = fr_sbuff_remaining(&our_in);
if (chunk_len > remaining) chunk_len = remaining;
ssize_t copied;
remaining = (len - fr_sbuff_used_total(&our_in));
- if (remaining && !fr_sbuff_extend_lowat(NULL, &our_in, 32)) return 0;
+ if (remaining && !fr_sbuff_extend(&our_in)) return 0;
chunk_len = fr_sbuff_remaining(&our_in);
if (chunk_len > remaining) chunk_len = remaining;
char *p;
char *end;
- if (!fr_sbuff_extend_lowat(NULL, &our_in, 32)) break;
+ if (!fr_sbuff_extend(&our_in)) break;
p = fr_sbuff_current(&our_in);
end = CONSTRAINED_END(&our_in, len, fr_sbuff_used_total(&our_in));
while (total < len) {
char *end;
- if (!fr_sbuff_extend_lowat(NULL, sbuff, 32)) break;
+ if (!fr_sbuff_extend(sbuff)) break;
end = CONSTRAINED_END(sbuff, len, total);
p = sbuff->p;
char const *found;
char *end;
- if (!fr_sbuff_extend_lowat(NULL, &our_sbuff, 32)) break;
+ if (!fr_sbuff_extend(&our_sbuff)) break;
end = CONSTRAINED_END(sbuff, len, total);
found = memchr(our_sbuff.p, c, end - our_sbuff.p);