Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
79cc7f2f
...
79cc7f2fde35cb23f56bc245feb8625efa72118c
authored
2003-01-31 14:59:03 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(_file_readline): Make sure the terminal zero is always added.
1 parent
4116d2d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
mailbox/file_stream.c
mailbox/file_stream.c
View file @
79cc7f2
...
...
@@ -102,6 +102,7 @@ _file_readline (stream_t stream, char *optr, size_t osize,
if
(
!
fs
->
file
)
{
optr
[
0
]
=
0
;
if
(
nbytes
)
*
nbytes
=
0
;
return
0
;
...
...
@@ -131,6 +132,7 @@ _file_readline (stream_t stream, char *optr, size_t osize,
err
=
errno
;
}
optr
[
n
]
=
0
;
if
(
nbytes
)
*
nbytes
=
n
;
return
err
;
...
...
Please
register
or
sign in
to post a comment