Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
8164e943
Commit
8164e943
authored
Jan 13, 2015
by
Gautier Pelloux-Prayer
Browse files
Correctly write in file: do not use fprintf but fputs...
parent
b2748f52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
tester/log_collection_tester.c
tester/log_collection_tester.c
+3
-2
No files found.
tester/log_collection_tester.c
View file @
8164e943
...
...
@@ -127,10 +127,11 @@ FILE* gzuncompress(const char* filepath) {
char
buffer
[
512
];
output
=
fopen
(
newname
,
"w+"
);
while
(
gzread
(
file
,
buffer
,
511
)
>
0
)
{
fprintf
(
output
,
buffer
,
strlen
(
buffer
));
fputs
(
buffer
,
output
);
memset
(
buffer
,
0
,
strlen
(
buffer
));
}
gzclose
(
file
);
CU_ASSERT_EQUAL
(
gzclose
(
file
)
,
Z_OK
)
;
ms_free
(
newname
);
fseek
(
output
,
0
,
SEEK_SET
);
...
...
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