vorbisgain: Add patch for incorrect usage of fprintf()

This commit is contained in:
Francis Gagné 2025-01-07 20:55:29 -05:00
parent 646113a9dd
commit 31c64cd766
2 changed files with 13 additions and 2 deletions

View File

@ -0,0 +1,12 @@
--- vorbisgain-0.37/misc.c 2004-01-03 16:17:28.000000000 -0500
+++ vorbisgain-0.37-patched/misc.c 2025-01-07 20:51:12.989521816 -0500
@@ -56,8 +56,7 @@
vfprintf(stderr, message, args);
va_end(args);
- fprintf(stderr, strerror(err_num));
- fprintf(stderr, "\n");
+ fprintf(stderr, "%s\n", strerror(err_num));
}

View File

@ -17,10 +17,9 @@ stdenv.mkDerivation rec {
patches = [
./isatty.patch
./fprintf.patch
];
hardeningDisable = [ "format" ];
buildInputs = [
libogg
libvorbis