b4a2128e54
OBS-URL: https://build.opensuse.org/request/show/398913 OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=21
13 lines
418 B
Diff
13 lines
418 B
Diff
--- lib/groupio.c
|
|
+++ lib/groupio.c
|
|
@@ -335,8 +335,7 @@ static /*@null@*/struct commonio_entry *merge_group_entries (
|
|
errno = ENOMEM;
|
|
return NULL;
|
|
}
|
|
- snprintf(new_line, new_line_len, "%s\n%s", gr1->line, gr2->line);
|
|
- new_line[new_line_len] = '\0';
|
|
+ snprintf(new_line, new_line_len + 1, "%s\n%s", gr1->line, gr2->line);
|
|
|
|
/* Concatenate the 2 list of members */
|
|
for (i=0; NULL != gptr1->gr_mem[i]; i++);
|