diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libcgrouptest01.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libcgrouptest01.c b/tests/libcgrouptest01.c index e144e6c..7232994 100644 --- a/tests/libcgrouptest01.c +++ b/tests/libcgrouptest01.c @@ -593,7 +593,7 @@ int check_fsmounted() 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; |