From: Alexander Pevzner Date: Thu, 8 Feb 2024 08:49:02 +0000 (+0300) Subject: Fixed gcc warning X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F887%2Fhead;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 bb62adaf8f..8c27cb5e71 100644 --- a/cups/dest.c +++ b/cups/dest.c @@ -1730,7 +1730,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); } //