diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-12-11 22:37:19 +0300 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-12-11 22:37:19 +0300 |
commit | 5c365da88438f8af9a4314d7a305cc3fd9be4843 (patch) | |
tree | 58bf09396f27cd915cedaaa814c73a4eac23ffc8 | |
parent | 4ed17829ac088b568c166e2cb7d51d553231a247 (diff) |
Fix non-NULL terminated strings.
-rw-r--r-- | utility.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |