From: Sudhir Kumar <skumar@linux.vnet.ibm.com>
This patch fixes a small mistake in the previous patch for malloc size.
Of course the size should not be of the pointer but the structure.
Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@98
4f4bb910-9a46-0410-90c8-
c897d4f1cd53
char entry_buffer[FILENAME_MAX * 4];
FILE *proc_file;
- tmp_entry = (struct mntent *) malloc(sizeof(struct mntent *));
+ tmp_entry = (struct mntent *) malloc(sizeof(struct mntent));
if (!tmp_entry) {
perror("Error: failled to mallloc for mntent\n");
return 1;