Skip site navigation (1)Skip section navigation (2)
Date:      31 Jul 1996 14:25:55 -0700
From:      Paul Traina <pst@jnx.com>
To:        freebsd-bugs@freebsd.org
Subject:   [from netbsd] The second argument of fgets(3) is not size_t but int.
Message-ID:  <7yspa8ru70.fsf@red.jnx.com>

next in thread | raw e-mail | index | archive | help
------- Start of forwarded message -------
From: msaitoh@spa.is.uec.ac.jp
To: gnats-bugs@NetBSD.ORG
Newsgroups: jnx.ext.bsd.net.bugs
Subject: misc/2664: The second argument of fgets(3) is not size_t but int.
Message-ID: <199607301524.AAA02601@ifree.spa.is.uec.ac.jp>
Date: 30 Jul 96 15:24:05 GMT
Reply-To: msaitoh@spa.is.uec.ac.jp
Organization: Juniper Networks, San Francisco, California


>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:
------- End of forwarded message -------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7yspa8ru70.fsf>