diff options
Diffstat (limited to 'utility.c')
-rw-r--r-- | utility.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -931,8 +931,8 @@ 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); + name[8]='\0'; if (gid) *gid = rgid; fclose(file); return (TRUE); |