Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
f77cc4cc
Commit
f77cc4cc
authored
Apr 19, 1998
by
H.J. Lu
Committed by
Jeff Law
Apr 19, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* isgetline.cc (istream::get): Fix a typo.
From-SVN: r19314
parent
39339a62
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
libio/ChangeLog
+4
-0
libio/isgetline.cc
+1
-3
No files found.
libio/ChangeLog
View file @
f77cc4cc
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
...
...
libio/isgetline.cc
View file @
f77cc4cc
...
...
@@ -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
);
_g
count
=
_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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment