aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utility.c1
1 files changed, 1 insertions, 0 deletions
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);