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
This commit is contained in:
Ton Voon 2006-03-27 08:19:01 +00:00
parent fb00fee631
commit 0f342875df

View file

@ -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])) {