diff --git a/debian/patches/format-security.patch b/debian/patches/format-security.patch
new file mode 100644
index 0000000000000000000000000000000000000000..15844345a918f19838dfb7b0d65076eeaf75f90f
--- /dev/null
+++ b/debian/patches/format-security.patch
@@ -0,0 +1,22 @@
+Description: fix format-security errors
+Author: IOhannes m zmölnig
+Origin: upstream
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- pd-lua.orig/pdlua.c
++++ pd-lua/pdlua.c
+@@ -1643,10 +1643,10 @@
+     post(compiled);
+     post(luaversionStr);
+ #else
+-    logpost(NULL, 3, pdluaver);
+-    logpost(NULL, 3, luaver);
+-    logpost(NULL, 3, compiled);
+-    logpost(NULL, 3, luaversionStr);
++    logpost(NULL, 3, "%s", pdluaver);
++    logpost(NULL, 3, "%s", luaver);
++    logpost(NULL, 3, "%s", compiled);
++    logpost(NULL, 3, "%s", luaversionStr);
+ #endif
+     pdlua_proxyinlet_setup();
+     PDLUA_DEBUG("pdlua pdlua_proxyinlet_setup done", 0);
diff --git a/debian/patches/series b/debian/patches/series
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..96ffb926c063023f51e588dcd0517c5bf18b8981 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+format-security.patch