mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
Fix a couple of sign-compare warnings.
This commit is contained in:
@@ -596,7 +596,7 @@ static FLAC__bool parse_double_(const FLAC__StreamMetadata_VorbisComment_Entry *
|
||||
return false;
|
||||
q++;
|
||||
memset(s, 0, sizeof(s)-1);
|
||||
strncpy(s, q, local_min(sizeof(s)-1, entry->length - (q-p)));
|
||||
strncpy(s, q, local_min(sizeof(s)-1, (size_t) (entry->length - (q-p))));
|
||||
|
||||
v = strtod(s, &end);
|
||||
if(end == s)
|
||||
|
||||
Reference in New Issue
Block a user