Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 462ae35c05b909a09282a97331053384 > files > 1

mcabber-1.1.2-3.mga9.src.rpm

From 2fe9aa3445111c31e3f94a31f213527b54385bc6 Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: Thu, 24 Nov 2022 19:34:11 +0100
Subject: [PATCH] fix literal

---
 mcabber/screen.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/mcabber/screen.c b/mcabber/screen.c
index c6d0a2a..344c37f 100644
--- a/mcabber/screen.c
+++ b/mcabber/screen.c
@@ -1278,12 +1278,12 @@ static void scr_update_window(winbuf_t *win_entry)
         tmp = pref[timelen];
         pref[timelen] = '\0';
         wbkgdset(win_entry->win, get_color(COLOR_TIMESTAMP));
-        wprintw(win_entry->win, pref);
+        wprintw(win_entry->win, "%s", pref);
         pref[timelen] = tmp;
         wbkgdset(win_entry->win, get_color(color));
-        wprintw(win_entry->win, pref+timelen);
+        wprintw(win_entry->win, "%s", pref+timelen);
       } else
-        wprintw(win_entry->win, pref);
+        wprintw(win_entry->win, "%s", pref);
 
       // Make sure we are at the right position
       wmove(win_entry->win, winy, prefixwidth-1);
@@ -1362,10 +1362,10 @@ scr_update_window_skipline:
         wmove(win_entry->win, winy, 0);
         wbkgdset(win_entry->win, get_color(COLOR_READMARK));
         g_snprintf(pref, prefixwidth, "             == ");
-        wprintw(win_entry->win, pref);
+        wprintw(win_entry->win, "%s", pref);
         w = scr_gettextwidth() / 3;
         for (i=0; i<w; i++)
-          wprintw(win_entry->win, "== ");
+          wprintw(win_entry->win, "%s", "== ");
         wclrtoeol(win_entry->win);
         wbkgdset(win_entry->win, get_color(COLOR_GENERAL));
       }
@@ -1782,8 +1782,8 @@ void scr_draw_main_window(unsigned int fullinit)
 
   ver = mcabber_version();
   message = g_strdup_printf("MCabber version %s.\n", ver);
-  mvwprintw(chatWnd, 0, 0, message);
-  mvwprintw(chatWnd, 1, 0, "http://mcabber.com/");
+  mvwprintw(chatWnd, 0, 0, "%s", message);
+  mvwprintw(chatWnd, 1, 0, "%s", "http://mcabber.com/");
   g_free(ver);
   g_free(message);
 
@@ -1977,12 +1977,12 @@ void scr_update_chat_status(int forceupdate)
   }
 
   if (chatmode) {
-    wprintw(chatstatusWnd, "~");
+    wprintw(chatstatusWnd, "%s", "~");
   } else {
     unsigned short bflags = buddy_getflags(BUDDATA(current_buddy));
     if (bflags & ROSTER_FLAG_MSG) {
       // There is an unread message from the current buddy
-      wprintw(chatstatusWnd, "#");
+      wprintw(chatstatusWnd, "%s", "#");
     }
   }
 
@@ -1990,7 +1990,7 @@ void scr_update_chat_status(int forceupdate)
     winbuf_t *win_entry;
     win_entry = scr_search_window(buddy_getjid(BUDDATA(current_buddy)), isspe);
     if (win_entry && win_entry->bd->lock)
-      mvwprintw(chatstatusWnd, 0, 0, "*");
+      mvwprintw(chatstatusWnd, 0, 0, "%s", "*");
   }
 
   if (isgrp || isspe) {
-- 
2.38.1