From: Alexander Pevzner Date: Thu, 8 Feb 2024 08:49:02 +0000 (+0300) Subject: Fixed gcc warning X-Git-Tag: v2.4.8~26^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fedcb1786bb20f156e01fc49faee353dad360fa;p=thirdparty%2Fcups.git Fixed gcc warning In cups/dest.c: dest.c:1830:21: warning: ā€˜%s’ directive argument is null [-Wformat-overflow=] 1733 | DEBUG_printf(("1cupsGetNamedDest: Using name=\"%s\"...", name)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This is really true, and gcc was smart enough to deduct it from context. Obviously, we meant to print dest_name here. --- diff --git a/cups/dest.c b/cups/dest.c index 259e37bf08..bedd4e1701 100644 --- a/cups/dest.c +++ b/cups/dest.c @@ -1827,7 +1827,7 @@ cupsGetNamedDest(http_t *http, /* I - Connection to server or @code CUPS_HTT DEBUG_puts("1cupsGetNamedDest: Asking server for default printer..."); } else - DEBUG_printf(("1cupsGetNamedDest: Using name=\"%s\"...", name)); + DEBUG_printf(("1cupsGetNamedDest: Using dest_name=\"%s\"...", dest_name)); } /*