From 5c365da88438f8af9a4314d7a305cc3fd9be4843 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 11 Dec 2000 19:37:19 +0000 Subject: [PATCH] Fix non-NULL terminated strings. --- utility.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.25.1