This is an automated email from the git hooks/post-receive script.

landry pushed a 
commit to branch 
master
in repository apps/xfce4-taskmanager.

commit c725dee6a9a4090151cb4251c935ba002fad071b
Author: rim <rozhuk...@gmail.com>
Date:   Sat May 26 23:21:21 2018 +0200

    more sizeof (bug 14401, bug 14403)
---
 src/process-window.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/process-window.c b/src/process-window.c
index f54e9fc..4e907a3 100644
--- a/src/process-window.c
+++ b/src/process-window.c
@@ -566,12 +566,12 @@ xtm_process_window_set_system_info (XtmProcessWindow 
*window, guint num_processe
        g_object_set (window->statusbar, "num-processes", num_processes, "cpu", 
cpu, "memory", memory_str, "swap", swap_str, NULL);
 
        xtm_process_monitor_add_peak (XTM_PROCESS_MONITOR 
(window->cpu_monitor), cpu / 100.0);
-       g_snprintf (value, 4, "%.0f", cpu);
-       g_snprintf (text, 100, _("CPU: %s%%"), value);
+       g_snprintf (value, sizeof(value), "%.0f", cpu);
+       g_snprintf (text, sizeof(text), _("CPU: %s%%"), value);
        gtk_widget_set_tooltip_text (window->cpu_monitor, text);
 
        xtm_process_monitor_add_peak (XTM_PROCESS_MONITOR 
(window->mem_monitor), memory / 100.0);
-       g_snprintf (text, 100, _("Memory: %s"), memory_str);
+       g_snprintf (text, sizeof(text), _("Memory: %s"), memory_str);
        gtk_widget_set_tooltip_text (window->mem_monitor, text);
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to