usermode/usermode-1.111-format-security.patch

22 lines
743 B
Diff
Raw Normal View History

commit b562472980ecd903d13e69279a31fcf77fac57bc
Author: Miloslav Trmač <mitr@redhat.com>
Date: Mon Apr 24 21:58:56 2017 +0200
Don't unnecessarily use g_strdup_printf()
This avoids a build failure with Werror=format-security.
diff --git a/userhelper.c b/userhelper.c
index 15d2c5e..287aa4d 100644
--- a/userhelper.c
+++ b/userhelper.c
@@ -583,7 +583,7 @@ converse_console(int num_msg, const struct pam_message **msg,
if (banner == 0) {
if ((data->banner != NULL) && (data->domain != NULL)) {
- text = g_strdup_printf(dgettext(data->domain, data->banner));
+ text = g_strdup (dgettext(data->domain, data->banner));
} else {
if ((service != NULL) && (strlen(service) > 0)) {
if (data->fallback_allowed) {