diff options
Diffstat (limited to 'buffer.c')
-rw-r--r-- | buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -109,6 +109,7 @@ void buf_setlen(buffer* buf, unsigned int len) { dropbear_exit("Bad buf_setlen"); } buf->len = len; + buf->pos = MIN(buf->pos, buf->len); } /* Increment the length of the buffer */ |