num = 0;
for (;;) {
- if (!BUF_MEM_grow(buf, (int)num + BUFSIZ))
+ if (!BUF_MEM_grow(buf, num + BUFSIZ))
goto end;
i = BIO_read(in, &(buf->data[num]), BUFSIZ);
if (i <= 0)
}
if (offset < 0 || offset >= num) {
- BIO_printf(bio_err, "Error: offset too large\n");
+ BIO_printf(bio_err, "Error: offset out of range\n");
goto end;
}