Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
e5152479
Commit
e5152479
authored
Feb 09, 2004
by
Simon Latapie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* http.c: made strsub a bit clean.
parent
decbf33a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
modules/control/http.c
modules/control/http.c
+16
-4
No files found.
modules/control/http.c
View file @
e5152479
...
...
@@ -2,7 +2,7 @@
* http.c : http mini-server ;)
*****************************************************************************
* Copyright (C) 2001-2004 VideoLAN
* $Id: http.c,v 1.5
2 2004/02/09 23:03:12
garf Exp $
* $Id: http.c,v 1.5
3 2004/02/09 23:30:37
garf Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Laurent Aimar <fenrir@via.ecp.fr>
...
...
@@ -2709,11 +2709,23 @@ static void EvaluateRPN( mvar_t *vars, rpn_stack_t *st, char *exp )
{
int
n
=
SSPopN
(
st
,
vars
);
int
m
=
SSPopN
(
st
,
vars
);
int
i_len
;
char
*
s
=
SSPop
(
st
);
char
*
str
=
malloc
(
n
-
m
+
2
)
;
char
*
str
;
memcpy
(
str
,
s
+
m
-
1
,
n
-
m
+
1
);
str
[
n
-
m
+
1
]
=
'\0'
;
if
(
n
>=
m
)
{
i_len
=
n
-
m
+
1
;
}
else
{
i_len
=
0
;
}
str
=
malloc
(
i_len
+
1
);
memcpy
(
str
,
s
+
m
-
1
,
i_len
);
str
[
i_len
]
=
'\0'
;
SSPush
(
st
,
str
);
free
(
s
);
...
...
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