From 1692e737c4ea0479243cef57f4401ea3ab0a105f Mon Sep 17 00:00:00 2001 From: "Mikhail S. Pobolovets" Date: Thu, 6 Aug 2009 10:20:16 +0300 Subject: [PATCH] Ticket #1475: warningis fix view.c:3237: format not a string literal and no format arguments utilunix.c:171, utilunix.c:173: assignment discards qualifiers from pointer target type Signed-off-by: Mikhail S. Pobolovets --- src/utilunix.c | 3 ++- src/view.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utilunix.c b/src/utilunix.c index 389442d23..fdaafaa08 100644 --- a/src/utilunix.c +++ b/src/utilunix.c @@ -164,7 +164,8 @@ int my_system (int flags, const char *shell, const char *command) execl (shell, shell, "-c", command, (char *) NULL); else { - gchar **shell_tokens, *only_cmd; + gchar **shell_tokens; + const gchar *only_cmd; shell_tokens = g_strsplit(shell," ", 2); if (shell_tokens == NULL) diff --git a/src/view.c b/src/view.c index 8a6e8c208..266438a95 100644 --- a/src/view.c +++ b/src/view.c @@ -3234,7 +3234,7 @@ do_search (WView *view) if (!isFound){ if (view->search->error_str) - message (D_NORMAL, _("Search"), view->search->error_str); + message (D_NORMAL, _("Search"), "%s", view->search->error_str); } view->dirty++; -- 2.11.4.GIT