delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/07/25/16:32:20

Date: Fri, 26 Jul 1996 00:27:52 +0400 (MSD)
From: "Alexander V. Lukyanov" <lav AT video DOT yars DOT free DOT net>
Message-Id: <199607252027.AAA22318@video.yars.free.net>
To: djgpp-workers AT delorie DOT com
Subject: harmless typo

*** fwrite.c.orig	Wed Jul 24 11:55:46 1996
--- fwrite.c	Wed Jul 24 12:00:02 1996
***************
*** 48,54 ****
        while (s > 0) {
          if (*ptr=='\n')
          {
!           if (--f->_cnt > 0)
              *f->_ptr++ = '\r';
            else
              if (_flsbuf('\r', f) == EOF)
--- 48,54 ----
        while (s > 0) {
          if (*ptr=='\n')
          {
!           if (--f->_cnt > -f->_bufsiz)
              *f->_ptr++ = '\r';
            else
              if (_flsbuf('\r', f) == EOF)

- Raw text -


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