Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cmp_tool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dominik Loidolt
cmp_tool
Commits
12734e68
Commit
12734e68
authored
2 years ago
by
Dominik Loidolt
Browse files
Options
Downloads
Patches
Plain Diff
Fix a bug when writing a binary file in windows
parent
bd8783f4
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!17
Fix a bug when writing a binary file in windows
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/cmp_io.c
+2
-2
2 additions, 2 deletions
lib/cmp_io.c
with
2 additions
and
2 deletions
lib/cmp_io.c
+
2
−
2
View file @
12734e68
...
...
@@ -145,7 +145,7 @@ static FILE *open_file(const char *dirname, const char *filename)
abort
();
}
return
fopen
(
pathname
,
"w"
);
return
fopen
(
pathname
,
"w
b
"
);
}
...
...
@@ -1208,7 +1208,7 @@ static __inline uint8_t str_to_uint8(const char *str, char const **str_end)
* @returns the size in bytes to store the string content; negative on error
*/
static
ssize_t
__inline
str2uint8_arr
(
const
char
*
str
,
uint8_t
*
data
,
uint32_t
buf_size
,
static
__inline
ssize_t
str2uint8_arr
(
const
char
*
str
,
uint8_t
*
data
,
uint32_t
buf_size
,
const
char
*
file_name
,
int
verbose_en
)
{
const
char
*
nptr
=
str
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment