diff options
author | Jindrich Novy <jnovy@redhat.com> | 2008-04-18 08:53:43 +0200 |
---|---|---|
committer | Jindrich Novy <jnovy@redhat.com> | 2008-04-18 08:58:58 +0200 |
commit | 8058de50b24f548df74df0943cb3a29c77fbde61 (patch) | |
tree | 75597c26ba3e5a9311ae81ea73f123f349814cb5 /lib/fs.c | |
parent | 94ff22b129aeb31c38848231e40f87aa4a5613a1 (diff) | |
download | rpm-8058de50b24f548df74df0943cb3a29c77fbde61.tar.gz rpm-8058de50b24f548df74df0943cb3a29c77fbde61.tar.bz2 rpm-8058de50b24f548df74df0943cb3a29c77fbde61.zip |
Put '\0' to the end of xmalloc'd string to avoid surprises
Diffstat (limited to 'lib/fs.c')
-rw-r--r-- | lib/fs.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -96,6 +96,7 @@ static int getFilesystemList(void) fsn = xmalloc(fsnameLength + 1); strncpy(fsn, (char *)vm + vm->vmt_data[VMT_STUB].vmt_off, fsnameLength); + fsn[fsnameLength] = '\0'; filesystems[i].mntPoint = fsnames[i] = fsn; |