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.
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);
}
//