1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/tools/filesystems/mhddfs/fix-format-security-error.patch
Felix Richter e748e18dde mhddfs: fix-format-security (#23276)
* mhddfs: fix-format-security

* mhddfs: use fputs instead of fprintf
2017-02-28 15:53:50 +01:00

13 lines
316 B
Diff

--- mhddfs-0.1.39/src/usage.c.old 2017-02-28 15:00:25.435438622 +0100
+++ mhddfs-0.1.39/src/usage.c 2017-02-28 15:00:33.847454958 +0100
@@ -43,7 +43,7 @@
"\n"
" see fusermount(1) for information about other options\n"
"";
- fprintf(to, usage);
+ fputs(usage, to);
if (to==stdout) exit(0);
exit(-1);
}