* isgetline.cc (istream::get): Fix a typo.
authorH.J. Lu <hjl@gnu.org>
Sun, 19 Apr 1998 21:14:32 +0000 (21:14 +0000)
committerJeff Law <law@gcc.gnu.org>
Sun, 19 Apr 1998 21:14:32 +0000 (15:14 -0600)
From-SVN: r19314

libio/ChangeLog
libio/isgetline.cc

index cf2e3dfae3c4eed43da9cc4a6cffacbf22289a30..3c07e25d95da2eb9be61718bb68df71ba3bb9011 100644 (file)
@@ -1,3 +1,7 @@
+Sun Apr 19 22:13:36 1998  H.J. Lu  (hjl@gnu.org)
+
+       * isgetline.cc (istream::get): Fix a typo.
+
 Thu Mar  5 09:23:28 1998  Manfred Hollstein  <manfred@s-direktnet.de>
 
        * configure.in: Make locating frag files failsafe even for the
index 2a2cd0f58a77a6dee72bac1128f8d21439ebadb2..02b34927eb8fa49ead3a9e23b48619eeeeb04ca4 100644 (file)
@@ -69,11 +69,9 @@ istream& istream::get(char* buf, int len, char delim)
     {
       streambuf *sbuf = rdbuf();
       int ch;
-      long count = _IO_getline_info(sbuf, buf, len - 1, delim, -1, &ch);
+      _gcount = _IO_getline_info(sbuf, buf, len - 1, delim, -1, &ch);
       if (_gcount == 0 && ch == EOF)
        set(ios::failbit|ios::eofbit);
-      else
-       _gcount = count;
     }
   buf[_gcount] = '\0';
   return *this;