Add printf attribute to log_err/DPRINTF and fix a few warnings
Modified to not use %z for portability reasons.
This commit is contained in:
committed by
Justin Maggard
parent
45cf9208fb
commit
3a57744735
@ -190,7 +190,12 @@ vc_scan(struct song_metadata *psong, const char *comment, const size_t length)
|
||||
{
|
||||
if( strncasecmp(comment, "LYRICS=", 7) != 0 )
|
||||
{
|
||||
DPRINTF(E_WARN, L_SCANNER, "Vorbis %.*s too long [%s]\n", (index(comment, '=')-comment), comment, psong->path);
|
||||
const char *eq = strchr(comment, '=');
|
||||
int len = 8;
|
||||
if (eq)
|
||||
len = eq - comment;
|
||||
DPRINTF(E_WARN, L_SCANNER, "Vorbis %.*s too long [%s]\n",
|
||||
len, comment, psong->path);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user