[Xfce4-commits] [apps/xfce4-taskmanager] 01/01: More sizeof uses (bug 14401, bug 14403)
noreply at xfce.org
noreply at xfce.org
Sat May 26 23:31:09 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 fa797de1406767b38fc709d05a15931142827c56
Author: rim <rozhuk.im at gmail.com>
Date: Sat May 26 23:30:22 2018 +0200
More sizeof uses (bug 14401, bug 14403)
---
src/task-manager-skel.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/task-manager-skel.c b/src/task-manager-skel.c
index d9d1ad5..06229e8 100644
--- a/src/task-manager-skel.c
+++ b/src/task-manager-skel.c
@@ -50,9 +50,9 @@ get_cpu_usage (gushort *cpu_count, gfloat *cpu_user, gfloat *cpu_system)
static gboolean
get_task_details (guint pid, Task *task)
{
- g_snprintf (task->name, 256, "foo");
- g_snprintf (task->cmdline, 1024, "foo -bar");
- g_snprintf (task->uid_name, 256, "baz");
+ g_snprintf (task->name, sizeof(task->name), "foo");
+ g_snprintf (task->cmdline, sizeof(task->cmdline), "foo -bar");
+ g_snprintf (task->uid_name, sizeof(task->uid_name), "baz");
return TRUE;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list