[Xfce4-commits] [apps/xfce4-taskmanager] 01/03: Make valngrind happy: correct calculate mem size to move

noreply at xfce.org noreply at xfce.org
Mon Dec 10 08:02:25 CET 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 b4266a20f869d0b57d9309e95b5c5c62f1a9912b
Author: rim <rozhuk.im at gmail.com>
Date:   Sun Dec 9 13:00:41 2018 +0300

    Make valngrind happy: correct calculate mem size to move
---
 src/task-manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/task-manager.c b/src/task-manager.c
index 8188de6..025125d 100644
--- a/src/task-manager.c
+++ b/src/task-manager.c
@@ -172,7 +172,7 @@ pretty_cmdline (gchar *cmdline, gchar *comm)
 			gchar *p = g_strstr_len (text, (gssize)text_size, comm);
 			if (p != NULL)
 			{
-				memmove (text, p, text_size);
+				memmove (text, p, (text_size - (p - text)));
 			}
 		}
 	}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list