changeset 6431:a10a256b6784

[gaim-migrate @ 6939] The log viewer is fixed. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 11 Aug 2003 20:18:15 +0000
parents 5211873190ea
children f9428d38c03b
files src/dialogs.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/dialogs.c	Mon Aug 11 19:56:57 2003 +0000
+++ b/src/dialogs.c	Mon Aug 11 20:18:15 2003 +0000
@@ -3208,7 +3208,7 @@
 		gtk_main_iteration();
 	*/
 
-	while (fgets(buf, BUF_LONG, fp) && strncmp(buf, "---- ", 5)!=0) {
+	while (fgets(buf, BUF_LONG, fp) && !strstr(buf, "---- New C")) {
 		i++;
 		if (strlen(buf) >= 5 && (!strncmp(buf + strlen(buf) - 5, "<BR>\n", 5)))
 			/* take off the \n */
@@ -3385,7 +3385,7 @@
 		gtk_box_pack_start(GTK_BOX(hbox), frame, TRUE, TRUE, 0);
 
 		while (fgets(buf, BUF_LONG, fp)) {
-			if (strncmp(buf, "---- ", 5)==0) {
+			if (strstr(buf, "---- New C")) {
 				int length;
 				char *temp = strchr(buf, '@');
 				GtkTreeIter iter;
@@ -3396,7 +3396,7 @@
 				temp++;
 				length = strcspn(temp, "-");
 				if (length > 31) length = 31;
-
+				
 				offset = ftell(fp);
 				g_snprintf(convo_start, length, "%s", temp);
 				gtk_list_store_append(list_store, &iter);