Subject: misc/2664: The second argument of fgets(3) is not size_t but int.
To: None <gnats-bugs@NetBSD.ORG>
From: None <msaitoh@spa.is.uec.ac.jp>
List: netbsd-bugs
Date: 07/31/1996 00:24:05
>Number:         2664
>Category:       misc
>Synopsis:       The second argument of fgets(3) is not size_t but int.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 30 11:50:04 1996
>Last-Modified:
>Originator:     SAITOH Masanobu
>Organization:
University of Electro-Communications
>Release:        1.2_BETA
>Environment:
System: NetBSD ifree.spa.is.uec.ac.jp 1.2_BETA NetBSD 1.2_BETA (IFREE) #12: Mon Jul 1 01:41:30 JST 1996 msaitoh@ifree.spa.is.uec.ac.jp:/var/sources/src/sys/arch/i386/compile/IFREE i386


>Description:
	The second argument of fgets(3) is not size_t but int.

>How-To-Repeat:
	Try:
		man fgets

>Fix:
	Apply this patch:

*** fgets.3.orig	Sat Oct 14 09:51:35 1995
--- fgets.3	Wed Jul 31 00:11:51 1996
***************
*** 47,53 ****
  .Sh SYNOPSIS
  .Fd #include <stdio.h>
  .Ft char *
! .Fn fgets "char *str" "size_t size" "FILE *stream"
  .Ft char *
  .Fn gets "char *str"
  .Sh DESCRIPTION
--- 47,53 ----
  .Sh SYNOPSIS
  .Fd #include <stdio.h>
  .Ft char *
! .Fn fgets "char *str" "int size" "FILE *stream"
  .Ft char *
  .Fn gets "char *str"
  .Sh DESCRIPTION
>Audit-Trail:
>Unformatted: