From e5150ae09d564f3305e4a751e17b5111d19982e9 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Tue, 30 Aug 2011 23:40:27 +0200 Subject: [PATCH] Fixed compiler warning: format not a string literal. --- main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 9520ca6..413df86 100644 --- a/main.c +++ b/main.c @@ -737,7 +737,7 @@ complete(const Arg *arg) { } else if (arg->i == HideCompletion) return TRUE; if (!widgets) { - prefix = g_strdup_printf(str); + prefix = g_strdup(str); widgets = malloc(sizeof(GtkWidget*) * listlen); suggestions = malloc(sizeof(char*) * listlen); top_border = gtk_event_box_new(); @@ -1007,7 +1007,7 @@ number(const Arg *arg) { if (!source) return TRUE; - uri = g_strdup_printf(source); /* copy string */ + uri = g_strdup(source); /* copy string */ p =& uri[0]; while(*p != '\0') /* goto the end of the string */ ++p; @@ -1216,7 +1216,7 @@ search(const Arg *arg) { if (arg->s) { free(search_handle); - search_handle = g_strdup_printf(arg->s); + search_handle = g_strdup(arg->s); } if (!search_handle) return TRUE; @@ -2361,7 +2361,7 @@ main(int argc, char *argv[]) { config_base = g_strdup_printf("%s/.config/", getenv("HOME")); if (cfile) - configfile = g_strdup_printf(cfile); + configfile = g_strdup(cfile); else configfile = g_strdup_printf(RCFILE); -- 2.11.4.GIT