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
5f77ecdc
...
5f77ecdc999816f27b3285e64f726200311f5485
authored
2000-11-13 01:53:44 +0000
by
Alain Magloire
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
typo.
1 parent
2af56852
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
mailbox/trans_stream.c
mailbox/trans_stream.c
View file @
5f77ecd
...
...
@@ -77,6 +77,9 @@ static int _trans_read(stream_t stream, char *optr, size_t osize, off_t offset,
*
nbytes
=
0
;
if
(
ts
->
transcoder
==
NULL
)
return
stream_read
(
ts
->
stream
,
optr
,
osize
,
offset
,
nbytes
);
if
(
offset
==
0
)
ts
->
cur_offset
=
0
;
if
(
(
iptr
=
alloca
(
isize
)
)
==
NULL
)
...
...
@@ -112,6 +115,8 @@ static int _trans_write(stream_t stream, const char *iptr, size_t isize, off_t o
return
EINVAL
;
*
nbytes
=
0
;
if
(
ts
->
transcoder
==
NULL
)
return
stream_write
(
ts
->
stream
,
iptr
,
isize
,
offset
,
nbytes
);
if
(
offset
&&
ts
->
cur_offset
!=
offset
)
return
ESPIPE
;
...
...
Please
register
or
sign in
to post a comment