Parcourir la source

db47: Fix format security warning

Signed-off-by: Marcel Denia <naoir@gmx.net>
Marcel Denia il y a 9 ans
Parent
révision
e7850308fd
1 fichiers modifiés avec 11 ajouts et 0 suppressions
  1. 11
    0
      libs/db47/patches/100-repmgr-format-security.patch

+ 11
- 0
libs/db47/patches/100-repmgr-format-security.patch Voir le fichier

@@ -0,0 +1,11 @@
1
+--- a/repmgr/repmgr_net.c
2
++++ b/repmgr/repmgr_net.c
3
+@@ -1136,7 +1136,7 @@ __repmgr_listen(env)
4
+ 	}
5
+ 
6
+ 	ret = net_errno;
7
+-	__db_err(env, ret, why);
8
++	__db_err(env, ret, "%s", why);
9
+ clean:	if (s != INVALID_SOCKET)
10
+ 		(void)closesocket(s);
11
+ 	return (ret);