Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
bcb07441
Commit
bcb07441
authored
Feb 12, 2008
by
ivoire
Browse files
Check for the return value of fwrite.
parent
bb41fd6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/misc/update.c
View file @
bcb07441
...
...
@@ -1287,7 +1287,11 @@ void update_DownloadReal( update_download_thread_t *p_udt )
while
(
(
i_read
=
stream_Read
(
p_stream
,
p_buffer
,
1
<<
10
)
)
&&
!
intf_ProgressIsCancelled
(
p_udt
,
i_progress
)
)
{
fwrite
(
p_buffer
,
i_read
,
1
,
p_file
);
if
(
fwrite
(
p_buffer
,
i_read
,
1
,
p_file
)
<
1
)
{
msg_Err
(
p_udt
,
"Failed to write into %s"
,
psz_destfile
);
break
;
}
l_downloaded
+=
i_read
;
psz_downloaded
=
size_str
(
l_downloaded
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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