www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/11/17/19:31:38

Date: Fri, 17 Nov 2000 19:30:59 -0500
Message-Id: <200011180030.TAA26797@envy.delorie.com>
X-Authentication-Warning: envy.delorie.com: dj set sender to dj AT envy DOT delorie DOT com using -f
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp-workers AT delorie DOT com
In-reply-to: <3A15C4B1.383439DB@bigfoot.com> (message from Richard Dawe on
Fri, 17 Nov 2000 23:52:17 +0000)
Subject: Re: snprintf() diff
References: <200011132023 DOT PAA04930 AT qnx DOT com> <3A1328A7 DOT C9866232 AT bigfoot DOT com> <200011160105 DOT UAA01282 AT envy DOT delorie DOT com> <3A15C4B1 DOT 383439DB AT bigfoot DOT com>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> *** /develop/djgpp/src/libc/ansi/stdio/flsbuf.c Thu Jun  3 18:27:34 1999
> --- /develop/djgpp.dev/src/libc/ansi/stdio/flsbuf.c     Fri Nov 17
> 23:36:04 2000
> ***************
> *** 27,32 ****
> --- 27,36 ----
>     if ((f->_flag&_IOWRT)==0)
>       return EOF;
>   
> +   /* No-op for full string buffers */
> +   if (f->_flag & _IOSTRG)
> +     return c;
> + 

Shouldn't this return EOF, not c?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019