summary refs log tree commit diff
path: root/pkgs/tools/filesystems/mhddfs/fix-format-security-error.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/filesystems/mhddfs/fix-format-security-error.patch')
-rw-r--r--pkgs/tools/filesystems/mhddfs/fix-format-security-error.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/mhddfs/fix-format-security-error.patch b/pkgs/tools/filesystems/mhddfs/fix-format-security-error.patch
new file mode 100644
index 00000000000..35e58cf0ce9
--- /dev/null
+++ b/pkgs/tools/filesystems/mhddfs/fix-format-security-error.patch
@@ -0,0 +1,12 @@
+--- 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);
+ }
+