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
2bdb522b
...
2bdb522bd011c929bb7010f940bc11bbc3528cbe
authored
2005-01-17 11:30:00 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(nntp_folder_open): Do not use alloca
1 parent
003ea491
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
mailbox/nntp/folder.c
mailbox/nntp/folder.c
View file @
2bdb522
...
...
@@ -113,7 +113,9 @@ nntp_folder_open (folder_t folder, int flags)
status
=
url_get_host
(
folder
->
url
,
NULL
,
0
,
&
len
);
if
(
status
!=
0
)
return
status
;
host
=
alloca
(
len
+
1
);
host
=
malloc
(
len
+
1
);
if
(
!
host
)
return
ENOMEM
;
url_get_host
(
folder
->
url
,
host
,
len
+
1
,
NULL
);
url_get_port
(
folder
->
url
,
&
port
);
...
...
@@ -121,6 +123,7 @@ nntp_folder_open (folder_t folder, int flags)
/* Create the networking stack. */
status
=
tcp_stream_create
(
&
carrier
,
host
,
port
,
folder
->
flags
);
free
(
host
);
if
(
status
!=
0
)
return
status
;
/* Ask for the stream internal buffering mechanism scheme. */
...
...
Please
register
or
sign in
to post a comment