diff --git a/src/parsers/daap_parser.y b/src/parsers/daap_parser.y index d872fd39..e9a5c5b7 100644 --- a/src/parsers/daap_parser.y +++ b/src/parsers/daap_parser.y @@ -283,7 +283,7 @@ static void sql_append(struct daap_result *result, const char *fmt, ...) return; nospace: - snprintf(result->errmsg, sizeof(result->errmsg), "Parser output buffer too small (%lu bytes)", sizeof(result->str)); + snprintf(result->errmsg, sizeof(result->errmsg), "Parser output buffer too small (%zu bytes)", sizeof(result->str)); result->err = -2; } diff --git a/src/parsers/smartpl_parser.y b/src/parsers/smartpl_parser.y index 614c4d1a..bb5003b9 100644 --- a/src/parsers/smartpl_parser.y +++ b/src/parsers/smartpl_parser.y @@ -263,7 +263,7 @@ static void sql_append(struct smartpl_result *result, struct result_part *part, return; nospace: - snprintf(result->errmsg, sizeof(result->errmsg), "Parser output buffer too small (%lu bytes)", sizeof(part->str)); + snprintf(result->errmsg, sizeof(result->errmsg), "Parser output buffer too small (%zu bytes)", sizeof(part->str)); result->err = -2; }