diff --git a/.files b/.files
index ea01838..36c8e2f 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index aea8c03..6f9da87 100644
--- a/.rev
+++ b/.rev
@@ -221,4 +221,12 @@
946615
+
+ d133883c7888ff90e2711b29193814da
+ 5.45.4
+
+ dimstar_suse
+
+ 978082
+
diff --git a/expect-5.45-format-security.patch b/expect-5.45-format-security.patch
new file mode 100644
index 0000000..4461188
--- /dev/null
+++ b/expect-5.45-format-security.patch
@@ -0,0 +1,13 @@
+--- exp_clib.c.orig
++++ exp_clib.c
+@@ -1938,8 +1938,8 @@
+ char *str;
+ {
+ if (exp_is_debugging) {
+- fprintf(stderr,str);
+- if (exp_logfile) fprintf(exp_logfile,str);
++ fprintf(stderr, "%s", str);
++ if (exp_logfile) fprintf(exp_logfile, "%s", str);
+ }
+ }
+
diff --git a/expect.changes b/expect.changes
index abe2209..c61e121 100644
--- a/expect.changes
+++ b/expect.changes
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Tue Apr 19 21:54:42 UTC 2022 - Dirk Müller
+
+- add expect-5.45-format-security.patch
+
+-------------------------------------------------------------------
Tue Dec 21 15:41:30 UTC 2021 - Ludwig Nussel
- Fix home page URL https://core.tcl-lang.org/expect/
diff --git a/expect.spec b/expect.spec
index 8a30f3c..f1a3ed3 100644
--- a/expect.spec
+++ b/expect.spec
@@ -1,7 +1,7 @@
#
# spec file for package expect
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -30,6 +30,7 @@ Patch2: expect-fixes.patch
Patch3: expect-log.patch
Patch4: config-guess-sub-update.patch
Patch5: expect-errorfd.patch
+Patch6: expect-5.45-format-security.patch
BuildRequires: autoconf
BuildRequires: tcl-devel
@@ -54,11 +55,7 @@ expect package loaded.
%prep
%setup -q -n %name%version
-%patch1
-%patch2
-%patch3
-%patch4
-%patch5
+%autopatch -p0
%build
export CFLAGS="%{optflags} -fPIC -pie"