changeset 20916:e1f1f3c1c19c

disapproval of revision '94ce8a7c2dcd9c4ab8a0eff7fb4391ea043cd183'
author Daniel Atallah <daniel.atallah@gmail.com>
date Sat, 13 Oct 2007 17:20:19 +0000
parents 65c27d3383ea
children aa420b502a6b
files libpurple/util.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/util.c	Sat Oct 13 16:55:57 2007 +0000
+++ b/libpurple/util.c	Sat Oct 13 17:20:19 2007 +0000
@@ -2565,8 +2565,6 @@
 	purple_debug_info("util", "Writing file %s\n",
 					filename_full);
 
-	g_return_val_if_fail((size >= 0 || size == -1), FALSE);
-
 	filename_temp = g_strdup_printf("%s.save", filename_full);
 
 	/* Remove an old temporary file, if one exists */
@@ -2592,7 +2590,7 @@
 	}
 
 	/* Write to file */
-	real_size = (size == -1) ? strlen(data) : (size_t) size;
+	real_size = (size == -1) ? strlen(data) : size;
 	byteswritten = fwrite(data, 1, real_size, file);
 
 	/* Close file */