commit f5872d1ed200e5a7b33b01949343f19a0b5d918b
parent 9fcdef164f2fae4b5e96d77a3ff56ea427288240
Author: Natasha Kerensikova <natacha@instinctive.eu>
Date: Thu, 8 Aug 2013 21:02:34 +0200
watchtab: fix user/group column parsing
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/watchtab.c b/watchtab.c
@@ -327,7 +327,7 @@ wentry_readline(struct watch_entry *dest, char *line,
char *login = line + user_first;
char *group = 0;
- line[user_len] = 0;
+ line[user_first + user_len] = 0;
/* Process group */
group = strchr(login, ':');