Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
715ef9ae
Commit
715ef9ae
authored
Apr 12, 2005
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Now works with http 1.0. Someone better check this to make sure I didn't mess up. :D
parent
ff2c0c11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
modules/misc/xml/xtag.c
modules/misc/xml/xtag.c
+15
-9
No files found.
modules/misc/xml/xtag.c
View file @
715ef9ae
...
...
@@ -166,23 +166,29 @@ static xml_reader_t *ReaderCreate( xml_t *p_xml, stream_t *s )
{
xml_reader_t
*
p_reader
;
char
*
p_buffer
;
int
i_
size
,
i_buffer
;
int
i_
pos
,
i_size
,
i_buffer
=
5000
;
XTag
*
p_root
;
/* Open and read file */
i_size
=
stream_Size
(
s
)
-
stream_Tell
(
s
);
p_buffer
=
malloc
(
i_size
+
1
);
p_buffer
=
malloc
(
i_buffer
+
1
);
if
(
p_buffer
==
NULL
)
return
NULL
;
i_buffer
=
0
;
while
(
i_buffer
<
i_size
)
i_pos
=
0
;
i_size
=
0
;
while
(
i_pos
<
i_buffer
)
{
msg_Dbg
(
p_xml
,
"got %d, want %d"
,
i_buffer
,
i_size
);
i_buffer
+=
stream_Read
(
s
,
&
p_buffer
[
i_buffer
],
i_size
-
i_buffer
);
i_size
=
stream_Read
(
s
,
&
p_buffer
[
i_pos
],
5000
);
i_pos
+=
i_size
;
if
(
i_size
<
5000
)
break
;
/* we're done */
else
{
i_buffer
+=
5000
;
p_buffer
=
realloc
(
p_buffer
,
i_buffer
*
sizeof
(
char
*
)
);
}
}
p_buffer
[
i_
buffer
]
=
0
;
p_buffer
[
i_
pos
]
=
0
;
if
(
!
i_buffer
)
{
...
...
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