From 0f342875df1cb8f0fb1803bebbfb536b30b51020 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Mon, 27 Mar 2006 08:19:01 +0000 Subject: Fixed bug with malloc of wrong size git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1358 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/check_disk.c b/plugins/check_disk.c index c7a2b8a3..1be5e6c3 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c @@ -554,7 +554,7 @@ process_arguments (int argc, char **argv) if (path_select_list) { temp_list = path_select_list; - stat_buf = malloc(sizeof stat_buf); + stat_buf = malloc(sizeof *stat_buf); while (temp_list) { /* Stat each entry to check that dir exists */ if (stat (temp_list->name, &stat_buf[0])) { -- cgit v1.2.3-74-g34f1