summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2006-03-27 08:19:01 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2006-03-27 08:19:01 (GMT)
commit0f342875df1cb8f0fb1803bebbfb536b30b51020 (patch)
treed4242625ee30de867e5827d28f8c3422a21f28b4
parentfb00fee631549fa3d975b9f35ca8de84d57f3b06 (diff)
downloadmonitoring-plugins-0f342875df1cb8f0fb1803bebbfb536b30b51020.tar.gz
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
-rw-r--r--plugins/check_disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index c7a2b8a..1be5e6c 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -554,7 +554,7 @@ process_arguments (int argc, char **argv)
554 554
555 if (path_select_list) { 555 if (path_select_list) {
556 temp_list = path_select_list; 556 temp_list = path_select_list;
557 stat_buf = malloc(sizeof stat_buf); 557 stat_buf = malloc(sizeof *stat_buf);
558 while (temp_list) { 558 while (temp_list) {
559 /* Stat each entry to check that dir exists */ 559 /* Stat each entry to check that dir exists */
560 if (stat (temp_list->name, &stat_buf[0])) { 560 if (stat (temp_list->name, &stat_buf[0])) {