[cvslog] (2005-06-20 19:22:06 UTC) Module eggdrop1.9: Change committed!

cvslog cvs at tsss.org
Mon Jun 20 13:22:06 CST 2005


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.9
Commit time: 2005-06-20 19:22:06 UTC
Commited by: Darko Ilic <darko at onvol.net>

Modified files:
     lib/eggdrop/xmlread.c

Log message:

- Missing sentinel in xml_parse_file() - fixed A LOAD of memory errors

---------------------- diff included ----------------------
Index: eggdrop1.9/lib/eggdrop/xmlread.c
diff -u eggdrop1.9/lib/eggdrop/xmlread.c:1.21 eggdrop1.9/lib/eggdrop/xmlread.c:1.22
--- eggdrop1.9/lib/eggdrop/xmlread.c:1.21	Mon Dec 13 09:02:29 2004
+++ eggdrop1.9/lib/eggdrop/xmlread.c	Mon Jun 20 14:21:55 2005
@@ -320,7 +320,8 @@
 		xml_set_error("out of memory");
 		return(NULL);
 	}
-	fread(buf, 1, len, fp);
+	len = fread(buf, 1, len, fp);
+	buf[len] = '\0';
 	fclose(fp);
 	root = xml_node_new();
 	root->type = XML_DOCUMENT;
----------------------- End of diff -----------------------



More information about the Changes mailing list