summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fa2a9b4)
to avoid getting trapped by a rogue writer.
if (f->pos_curr <= f->pos_final)
buf[f->pos_curr++] = c;
/* Drop beyond available range. */
if (f->pos_curr <= f->pos_final)
buf[f->pos_curr++] = c;
/* Drop beyond available range. */
+ /*
+ * TODO Define max after which we stop reading.
+ * To ensure that a rogue large message
+ * doesn't trap us here.
+ */