diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-03-27 08:19:01 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-03-27 08:19:01 +0000 |
commit | 0f342875df1cb8f0fb1803bebbfb536b30b51020 (patch) | |
tree | d4242625ee30de867e5827d28f8c3422a21f28b4 | |
parent | fb00fee631549fa3d975b9f35ca8de84d57f3b06 (diff) | |
download | monitoring-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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])) { |