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
e94bc5f2
Commit
e94bc5f2
authored
Aug 25, 1998
by
Ulrich Drepper
Committed by
Ulrich Drepper
Aug 25, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(_IO_getline_info): Don't read anything for N==0.
From-SVN: r21973
parent
55895a7a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
libio/ChangeLog
+5
-0
libio/iogetline.c
+2
-2
No files found.
libio/ChangeLog
View file @
e94bc5f2
1998-08-25 14:34 Ulrich Drepper <drepper@cygnus.com>
* libio/iogetline.c (_IO_getline_info): Don't read anything for
N == 0. Patch by HJ Lu.
1998-08-23 Mark Mitchell <mark@markmitchell.com>
1998-08-23 Mark Mitchell <mark@markmitchell.com>
* iomanip.h: Use __extension__ for `extern' explicit template
* iomanip.h: Use __extension__ for `extern' explicit template
...
...
libio/iogetline.c
View file @
e94bc5f2
...
@@ -58,7 +58,7 @@ _IO_getline_info (fp, buf, n, delim, extract_delim, eof)
...
@@ -58,7 +58,7 @@ _IO_getline_info (fp, buf, n, delim, extract_delim, eof)
{
{
char
*
ptr
=
buf
;
char
*
ptr
=
buf
;
if
(
eof
)
*
eof
=
0
;
if
(
eof
)
*
eof
=
0
;
do
while
(
n
!=
0
)
{
{
_IO_ssize_t
len
=
fp
->
_IO_read_end
-
fp
->
_IO_read_ptr
;
_IO_ssize_t
len
=
fp
->
_IO_read_end
-
fp
->
_IO_read_ptr
;
if
(
len
<=
0
)
if
(
len
<=
0
)
...
@@ -105,7 +105,7 @@ _IO_getline_info (fp, buf, n, delim, extract_delim, eof)
...
@@ -105,7 +105,7 @@ _IO_getline_info (fp, buf, n, delim, extract_delim, eof)
ptr
+=
len
;
ptr
+=
len
;
n
-=
len
;
n
-=
len
;
}
}
}
while
(
n
!=
0
);
}
return
ptr
-
buf
;
return
ptr
-
buf
;
}
}
...
...
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