[Nagiosplug-checkins] nagiosplug/plugins check_disk.c,1.63,1.64

Ton Voon tonvoon at users.sourceforge.net
Mon Mar 27 00:20:01 CEST 2006


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28870

Modified Files:
	check_disk.c 
Log Message:
Fixed bug with malloc of wrong size


Index: check_disk.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_disk.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- check_disk.c	23 Mar 2006 17:16:38 -0000	1.63
+++ check_disk.c	27 Mar 2006 08:19:01 -0000	1.64
@@ -554,7 +554,7 @@
 
   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])) {





More information about the Commits mailing list