27c27
< __FBSDID("$FreeBSD: head/lib/libc/stdio/fmemopen.c 246206 2013-02-01 13:04:06Z gahr $");
---
> __FBSDID("$FreeBSD: head/lib/libc/stdio/fmemopen.c 266971 2014-06-02 13:48:57Z gahr $");
59a60,67
> * POSIX says we shall return EINVAL if size is 0.
> */
> if (size == 0) {
> errno = EINVAL;
> return (NULL);
> }
>
> /*
122,129c130
< if (ck->bin) {
< /*
< * This isn't useful, since the buffer isn't allowed
< * to grow.
< */
< ck->off = ck->len = size;
< } else
< ck->off = ck->len = strnlen(ck->buf, ck->size);
---
> ck->off = ck->len = strnlen(ck->buf, ck->size);
< __FBSDID("$FreeBSD: head/lib/libc/stdio/fmemopen.c 246206 2013-02-01 13:04:06Z gahr $");
---
> __FBSDID("$FreeBSD: head/lib/libc/stdio/fmemopen.c 266971 2014-06-02 13:48:57Z gahr $");
59a60,67
> * POSIX says we shall return EINVAL if size is 0.
> */
> if (size == 0) {
> errno = EINVAL;
> return (NULL);
> }
>
> /*
122,129c130
< if (ck->bin) {
< /*
< * This isn't useful, since the buffer isn't allowed
< * to grow.
< */
< ck->off = ck->len = size;
< } else
< ck->off = ck->len = strnlen(ck->buf, ck->size);
---
> ck->off = ck->len = strnlen(ck->buf, ck->size);