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
7f838688
...
7f838688a2db76401452b970e2989e887422c6dc
authored
2003-04-22 12:33:00 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(imap_literal_string): Bugfix. Literal length may be {0}.
1 parent
554040c8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
mailbox/imap/folder.c
mailbox/imap/folder.c
View file @
7f83868
...
...
@@ -970,6 +970,14 @@ imap_literal_string (f_imap_t f_imap, char **ptr)
size_t
len
,
len0
,
total
;
int
status
=
0
;
int
nl
;
if
(
f_imap
->
string
.
nleft
==
0
)
{
status
=
imap_readline
(
f_imap
);
*
ptr
=
f_imap
->
buffer
;
return
status
;
}
/* The (len + 1) in the for is to count the strip '\r' by imap_readline. */
for
(
len0
=
len
=
total
=
0
;
total
<
f_imap
->
string
.
nleft
;
total
+=
(
len
+
1
))
{
...
...
Please
register
or
sign in
to post a comment