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
7c641f14
...
7c641f141331e945100674e6054f83d9fcaae892
authored
2002-02-07 07:58:55 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(trans_read): Control number of bytes read by stream_read().
1 parent
6c0e046b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
mailbox/filter_trans.c
mailbox/filter_trans.c
View file @
7c641f1
...
...
@@ -161,7 +161,7 @@ trans_read (filter_t filter, char *optr, size_t osize, off_t offset,
ret
=
stream_read
(
filter
->
stream
,
ts
->
w_buf
+
ts
->
w_whd
,
MU_TRANS_BSIZE
-
ts
->
w_whd
,
ts
->
offset
,
&
wbytes
);
if
(
ret
!=
0
)
if
(
ret
!=
0
||
wbytes
==
0
)
break
;
ts
->
offset
+=
wbytes
;
ts
->
w_whd
+=
wbytes
;
...
...
Please
register
or
sign in
to post a comment