Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
1fe85541
Commit
1fe85541
authored
Apr 12, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: drop trailing new line in proxy URL
parent
e6543b24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
src/posix/netconf.c
src/posix/netconf.c
+8
-4
No files found.
src/posix/netconf.c
View file @
1fe85541
...
...
@@ -95,12 +95,16 @@ char *vlc_getProxyUrl(const char *url)
close
(
fd
[
0
]);
while
(
waitpid
(
pid
,
&
(
int
){
0
},
0
)
==
-
1
);
if
(
len
>=
sizeof
(
buf
))
return
NULL
;
/* overflow */
if
(
len
>=
9
&&
!
strncasecmp
(
buf
,
"direct://"
,
9
))
return
NULL
;
if
(
len
>
0
)
return
strndup
(
buf
,
len
);
char
*
end
=
memchr
(
buf
,
'\n'
,
len
);
if
(
end
!=
NULL
)
{
*
end
=
'\0'
;
return
strdup
(
buf
);
}
/* Parse error: fallback (may be due to missing executable) */
}
else
close
(
fd
[
0
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment