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
15c8f0f9
...
15c8f0f92a803f74a3878385294b506a71315297
authored
2003-07-01 15:00:29 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(deliver): Bugfix: do not pass size_t instead of off_t.
1 parent
76facf53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
mail.local/main.c
mail.local/main.c
View file @
15c8f0f
...
...
@@ -605,7 +605,7 @@ deliver (mailbox_t imbx, char *name)
struct
mu_auth_data
*
auth
;
int
status
;
stream_t
istream
,
ostream
;
size
_t
size
;
off
_t
size
;
int
failed
=
0
;
auth
=
mu_get_auth_by_name
(
name
);
...
...
@@ -678,7 +678,7 @@ deliver (mailbox_t imbx, char *name)
return
;
}
if
((
status
=
stream_size
(
ostream
,
(
off_t
*
)
&
size
)))
if
((
status
=
stream_size
(
ostream
,
&
size
)))
{
mailer_err
(
_
(
"can't get stream size (mailbox %s): %s"
),
path
,
mu_strerror
(
status
));
...
...
@@ -688,7 +688,8 @@ deliver (mailbox_t imbx, char *name)
#if defined(USE_DBM)
{
size_t
n
,
isize
;
size_t
n
;
off_t
isize
;
switch
(
check_quota
(
name
,
size
,
&
n
))
{
...
...
@@ -702,7 +703,7 @@ deliver (mailbox_t imbx, char *name)
break
;
default:
if
((
status
=
stream_size
(
istream
,
(
off_t
*
)
&
isize
)))
if
((
status
=
stream_size
(
istream
,
&
isize
)))
{
mailer_err
(
_
(
"can't get stream size (input message): %s"
),
path
,
mu_strerror
(
status
));
...
...
@@ -727,9 +728,9 @@ deliver (mailbox_t imbx, char *name)
off_t
off
=
size
;
size_t
nwr
,
nrd
;
char
*
buf
=
NULL
;
size
_t
bufsize
=
1024
;
off
_t
bufsize
=
1024
;
stream_size
(
istream
,
(
off_t
*
)
&
bufsize
);
stream_size
(
istream
,
&
bufsize
);
for
(;
(
buf
=
malloc
(
bufsize
))
==
NULL
&&
bufsize
>
1
;
bufsize
/=
2
)
;
...
...
Please
register
or
sign in
to post a comment