comparison libpurple/util.h @ 20853:1a44d1a17784

purple_util_write_data_to_file_absolute() should take a signed argument for the size as -1 is used to indicate that the string is nul-delimited. This resolves CID 330.
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 09 Oct 2007 23:09:05 +0000
parents 6bf32c9e15a7
children 5915ad785ee7 73ef026191e7
comparison
equal deleted inserted replaced
20852:6cc03752fe59 20853:1a44d1a17784
605 * rolls around. 605 * rolls around.
606 * @see purple_util_write_data_to_file() 606 * @see purple_util_write_data_to_file()
607 * 607 *
608 */ 608 */
609 gboolean 609 gboolean
610 purple_util_write_data_to_file_absolute(const char *filename_full, const char *data, size_t size); 610 purple_util_write_data_to_file_absolute(const char *filename_full, const char *data, gssize size);
611 611
612 /** 612 /**
613 * Read the contents of a given file and parse the results into an 613 * Read the contents of a given file and parse the results into an
614 * xmlnode tree structure. This is intended to be used to read 614 * xmlnode tree structure. This is intended to be used to read
615 * Purple's configuration xml files (prefs.xml, pounces.xml, etc.) 615 * Purple's configuration xml files (prefs.xml, pounces.xml, etc.)