[Xfce4-commits] [apps/xfce4-taskmanager] 01/01: Fix mem size calculation once more

noreply at xfce.org noreply at xfce.org
Tue Dec 11 18:43:29 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 c6e33f30484803f873435f0cdf0e4c57924abd36
Author: Mikhail Efremov <sem at altlinux.org>
Date:   Tue Dec 11 20:23:53 2018 +0300

    Fix mem size calculation once more
    
    A terminating null byte should be moved too.
    Fixes commit b4266a20f869d0b57d9309e95b5c5c62f1a9912b.
---
 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 6d3b09a..9a580da 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, (gsize)(text_size - (gsize)(p - text)));
+				memmove (text, p, (gsize)(text_size - (gsize)(p - text) + 1));
 			}
 		}
 	}

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


More information about the Xfce4-commits mailing list