[Xfce4-commits] [apps/xfce4-taskmanager] 01/01: more sizeof (bug 14401, bug 14403)
noreply at xfce.org
noreply at xfce.org
Sat May 26 23:24:33 CEST 2018
This is an automated email from the git hooks/post-receive script.
l a n d r y p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-taskmanager.
commit c725dee6a9a4090151cb4251c935ba002fad071b
Author: rim <rozhuk.im at 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.
More information about the Xfce4-commits
mailing list