ayttm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ayttm-commits] CVS: ayttm/src chat_room.c,1.23,1.24 chat_window.c,1.21


From: Colin Leroy <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/src chat_room.c,1.23,1.24 chat_window.c,1.21,1.22 smileys.c,1.7,1.8
Date: Mon, 13 Jan 2003 06:33:30 -0500

Update of /cvsroot/ayttm/ayttm/src
In directory subversions:/tmp/cvs-serv27628/src

Modified Files:
        chat_room.c chat_window.c smileys.c 
Log Message:
check nulls


Index: chat_room.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/chat_room.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- chat_room.c 13 Jan 2003 09:52:41 -0000      1.23
+++ chat_room.c 13 Jan 2003 11:33:27 -0000      1.24
@@ -631,6 +631,10 @@
 {
        gchar buff[2048];
        gchar *temp_message, *link_message;
+
+       if (!message || strlen(message) == 0)
+               return;
+
        if(!strcmp(chat_room->chat_room_account->handle, user))
        {
                g_snprintf(buff, 2048, "<FONT COLOR=\"#0000FF\"><B>%s: 
</B></FONT>",

Index: chat_window.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/chat_window.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- chat_window.c       13 Jan 2003 04:58:32 -0000      1.21
+++ chat_window.c       13 Jan 2003 11:33:27 -0000      1.22
@@ -1830,7 +1830,9 @@
   char recode_buff[BUF_SIZE*2 + 1];
 #endif
 
-
+  if (!o_message || strlen(o_message) == 0)
+         return;
+ 
   /* do we need to ignore this user? If so, do it BEFORE filters so they can't 
DoS us */
 
   if(!strcasecmp(remote_contact->group->name, _("Ignore") ))

Index: smileys.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/smileys.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- smileys.c   11 Jan 2003 14:52:16 -0000      1.7
+++ smileys.c   13 Jan 2003 11:33:27 -0000      1.8
@@ -211,7 +211,9 @@
   }
 
   newstr=g_string_sized_new(2048);
-
+  
+  if (!text) return g_strdup("");
+  
   while(text[ipos]!='\0')
   {
     /* ignore anything in < > */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]