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
8772fbd6
...
8772fbd6f69aab253920bb2802438867d3cf501a
authored
2004-06-28 22:38:25 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(internal_icvt_read,copy_pass): Fixed mistyped conditions.
1 parent
6d3ffdf3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
mailbox/filter_iconv.c
mailbox/filter_iconv.c
View file @
8772fbd
...
...
@@ -138,7 +138,7 @@ internal_icvt_read (stream_t stream, char *optr, size_t osize, size_t *pnbytes)
}
else
if
(
nbytes
==
0
)
{
if
(
*
pnbytes
)
if
(
pnbytes
)
*
pnbytes
=
0
;
return
0
;
}
...
...
@@ -232,7 +232,7 @@ internal_icvt_read (stream_t stream, char *optr, size_t osize, size_t *pnbytes)
return
MU_ERR_FAILURE
;
}
if
(
*
pnbytes
)
if
(
pnbytes
)
*
pnbytes
=
ob
-
optr
;
return
0
;
}
...
...
@@ -311,7 +311,7 @@ copy_pass (struct icvt_stream *s, char *optr, size_t osize, size_t *pnbytes)
s
->
bufpos
-=
sz
;
if
(
s
->
bufpos
)
memmove
(
s
->
buf
,
s
->
buf
+
sz
,
s
->
bufpos
);
if
(
*
pnbytes
)
if
(
pnbytes
)
*
pnbytes
=
sz
;
return
0
;
}
...
...
@@ -324,7 +324,7 @@ copy_pass (struct icvt_stream *s, char *optr, size_t osize, size_t *pnbytes)
if
(
s
->
bufpos
==
0
)
return
MU_ERR_FAILURE
;
}
if
(
*
pnbytes
)
if
(
pnbytes
)
*
pnbytes
=
nbytes
;
return
0
;
}
...
...
Please
register
or
sign in
to post a comment