From db6f3000712f19848dd88da91abfe3ebaca54327 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Wed, 12 Jan 2022 20:58:41 +0100 Subject: [PATCH] [daap/smartpl] Fix print masks in parsers --- src/parsers/daap_parser.y | 2 +- src/parsers/smartpl_parser.y | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }