From: Eric Andersen Date: Mon, 11 Dec 2000 19:37:19 +0000 (-0000) Subject: Fix non-NULL terminated strings. X-Git-Tag: 0_48~25 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5c365da88438f8af9a4314d7a305cc3fd9be4843;p=oweals%2Fbusybox.git Fix non-NULL terminated strings. --- diff --git a/utility.c b/utility.c index 62c472885..22eaff075 100644 --- a/utility.c +++ b/utility.c @@ -931,6 +931,7 @@ unsigned long my_getid(const char *filename, char *name, long id, long *gid) } } if (id != -1 && id == rid) { + memset(name, 0, 9*sizeof(char)); strncpy(name, rname, 8); if (gid) *gid = rgid; fclose(file);