Skip to content

Commit

Permalink
vorbisgain: Add patch for incorrect usage of fprintf()
Browse files Browse the repository at this point in the history
  • Loading branch information
FraGag committed Jan 8, 2025
1 parent f85e4ee commit 373954d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 12 additions & 0 deletions pkgs/by-name/vo/vorbisgain/fprintf.patch
Original file line number Diff line number Diff line change
@@ -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));
}


3 changes: 1 addition & 2 deletions pkgs/by-name/vo/vorbisgain/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ stdenv.mkDerivation rec {

patches = [
./isatty.patch
./fprintf.patch
];

hardeningDisable = [ "format" ];

buildInputs = [
libogg
libvorbis
Expand Down

0 comments on commit 373954d

Please sign in to comment.