Oskar Liljeblad <[EMAIL PROTECTED]> wrote: > I don't know if this is necessary or necessarily correct, but > it seems getdelim doesn't always set errno on failure (when it > returns -1). > > From what I can tell, the test below (needed < cur_len) is to > test for overflow.
Right. How about using ENOMEM instead? > Oskar Liljeblad ([EMAIL PROTECTED]) ... > @@ -86,6 +91,7 @@ getdelim (char **lineptr, size_t *n, int > > if (needed < cur_len) > { > + errno = EOVERFLOW; _______________________________________________ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib