Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Strogin
flac
Commits
c748d12b
Commit
c748d12b
authored
Aug 17, 2002
by
Josh Coalson
Browse files
fix bug where comparing vorbis comment field names were not case insensitive
parent
a0ac09ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/metaflac/main.c
View file @
c748d12b
...
...
@@ -1739,7 +1739,8 @@ FLAC__bool set_vc_field(const char *filename, FLAC__StreamMetadata *block, const
FLAC__bool
field_name_matches_entry
(
const
char
*
field_name
,
unsigned
field_name_length
,
const
FLAC__StreamMetadata_VorbisComment_Entry
*
entry
)
{
return
(
0
!=
memchr
(
entry
->
entry
,
'='
,
entry
->
length
)
&&
0
==
strncmp
(
field_name
,
entry
->
entry
,
field_name_length
));
FLAC__byte
*
eq
=
memchr
(
entry
->
entry
,
'='
,
entry
->
length
);
return
(
0
!=
eq
&&
(
unsigned
)(
eq
-
entry
->
entry
)
==
field_name_length
&&
0
==
strncasecmp
(
field_name
,
entry
->
entry
,
field_name_length
));
}
void
hexdump
(
const
char
*
filename
,
const
FLAC__byte
*
buf
,
unsigned
bytes
,
const
char
*
indent
)
...
...
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