src/protocols/oscar/oscar.c

changeset 9532
32470c5a1d58
parent 9481
cde5948eae04
child 9539
5528f58dea4d
--- a/src/protocols/oscar/oscar.c	Wed Jul 14 20:14:48 2004 +0000
+++ b/src/protocols/oscar/oscar.c	Wed Jul 14 22:47:20 2004 +0000
@@ -510,7 +510,7 @@
 				break;
 			}
 			if (tmp)
-				g_string_append_printf(str, "%s%s", (bit == 1 ? "" : ", "), tmp);
+				g_string_append_printf(str, "%s%s", (*(str->str) == '\0' ? "" : ", "), tmp);
 		}
 		bit <<= 1;
 	}
@@ -3071,6 +3071,7 @@
 			char *buf = g_malloc(st.st_size);
 			file = fopen(iconfile, "rb");
 			if (file) {
+				/* XXX - Use g_file_get_contents() */
 				int len = fread(buf, 1, st.st_size, file);
 				gaim_debug_info("oscar",
 						   "Sending buddy icon to %s (%d bytes, "
@@ -4395,6 +4396,7 @@
 			char *buf = g_malloc(st.st_size);
 			FILE *file = fopen(iconfile, "rb");
 			if (file) {
+				/* XXX - Use g_file_get_contents()? */
 				fread(buf, 1, st.st_size, file);
 				fclose(file);
 				gaim_debug_info("oscar",
@@ -5200,6 +5202,7 @@
 			FILE *file = fopen(iconfile, "rb");
 			if (file) {
 				char *buf = g_malloc(st.st_size);
+				/* XXX - Use g_file_get_contents()? */
 				fread(buf, 1, st.st_size, file);
 				fclose(file);
 
@@ -6527,6 +6530,7 @@
 						char *buf = g_malloc(st.st_size);
 						FILE *file = fopen(iconfile, "rb");
 						if (file) {
+							/* XXX - Use g_file_get_contents()? */
 							fread(buf, 1, st.st_size, file);
 							fclose(file);
 							gaim_debug_info("oscar",
@@ -7033,6 +7037,7 @@
 		if (file) {
 			md5_state_t *state;
 			char md5[16];
+			/* XXX - Use g_file_get_contents()? */
 			int len = fread(buf, 1, st.st_size, file);
 			fclose(file);
 			state = g_malloc(sizeof(md5_state_t));

mercurial