about summary refs log tree commit diff
path: root/pkgs/shells/rush/fix-format-security-error.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/shells/rush/fix-format-security-error.patch')
-rw-r--r--pkgs/shells/rush/fix-format-security-error.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/shells/rush/fix-format-security-error.patch b/pkgs/shells/rush/fix-format-security-error.patch
new file mode 100644
index 000000000000..ed3ad0aa4c1f
--- /dev/null
+++ b/pkgs/shells/rush/fix-format-security-error.patch
@@ -0,0 +1,12 @@
+diff -Nur rush-1.8.orig/lib/wordsplit.c rush-1.8/lib/wordsplit.c
+--- rush-1.8.orig/lib/wordsplit.c	2016-08-18 20:11:43.000000000 +0200
++++ rush-1.8/lib/wordsplit.c	2016-11-14 14:37:02.976177414 +0100
+@@ -2330,7 +2330,7 @@
+       break;
+ 
+     default:
+-      wsp->ws_error (wordsplit_strerror (wsp));
++      wsp->ws_error ("%s", wordsplit_strerror (wsp));
+     }
+ }
+