SCCS-vsn: lib/libc/stdio/setvbuf.c 5.3
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)setvbuf.c 5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)setvbuf.c 5.3 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
register int mode;
register size_t size;
{
register int mode;
register size_t size;
{
+ if (buf == NULL)
+ size = 0;
/*
* Verify arguments. The `int' limit on `size' is due to this
/*
* Verify arguments. The `int' limit on `size' is due to this