markfasheh / duperemove

Tools for deduping file systems
GNU General Public License v2.0
689 stars 75 forks source link

util.c: make debug helper `-Wformat-security`-clean #328

Closed trofi closed 7 months ago

trofi commented 8 months ago

Without the change gcc-14 fails the build with -Werror=format-security as:

util.c:340:25: error: format not a string literal and no format arguments [-Werror=format-security]
  340 |         fprintf(stream, buf);
      |                         ^~~

It's a harmless warning as UUID has a well-defined set of characters. But fputs() expresses intent more directly to print the string as is.

JackSlateur commented 7 months ago

Thank you