[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ayttm-commits] CVS: ayttm/modules/msn2/libmsn2 msn_core.C,1.5,1.6
From: |
Colin Leroy <address@hidden> |
Subject: |
[Ayttm-commits] CVS: ayttm/modules/msn2/libmsn2 msn_core.C,1.5,1.6 |
Date: |
Sun, 05 Jan 2003 13:54:23 -0500 |
Update of /cvsroot/ayttm/ayttm/modules/msn2/libmsn2
In directory subversions:/tmp/cvs-serv7805/modules/msn2/libmsn2
Modified Files:
msn_core.C
Log Message:
Try to prevent a segfault happening on x86
Index: msn_core.C
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/msn2/libmsn2/msn_core.C,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- msn_core.C 5 Jan 2003 02:20:27 -0000 1.5
+++ msn_core.C 5 Jan 2003 18:54:20 -0000 1.6
@@ -767,14 +767,14 @@
void msn_handle_MSG(msnconn * conn, char ** args, int numargs)
{
int msglen;
- char * msg;
+ char * msg = NULL;
char * mime;
char * body;
char * tmp;
msglen=atoi(args[3]);
- msg=new char[msglen+1];
+ msg=(char *)malloc(msglen+1);
read(conn->sock, msg, msglen);
msg[msglen]='\0';
@@ -786,7 +786,7 @@
if((strstr(mime, "TypingUser")!=NULL) || (strstr(mime, "TypeingUser")!=NULL))
{ // the second of the above two is a workaround for a spelling bug in the
Jabber MSN transport
ext_typing_user(conn, args[1], msn_decode_URL(args[2]));
- delete msg;
+ free(msg);
return;
}
@@ -839,7 +839,7 @@
#endif
}
delete content;
- delete msg;
+ free(msg);
}
char * msn_find_in_mime(char * mime, char * header)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ayttm-commits] CVS: ayttm/modules/msn2/libmsn2 msn_core.C,1.5,1.6,
Colin Leroy <address@hidden> <=
- Prev by Date:
[Ayttm-commits] CVS: ayttm configure.in,1.37,1.38 ChangeLog,1.37,1.38
- Next by Date:
[Ayttm-commits] CVS: ayttm/src dialog.c,1.3,1.4
- Previous by thread:
[Ayttm-commits] CVS: ayttm configure.in,1.37,1.38 ChangeLog,1.37,1.38
- Next by thread:
[Ayttm-commits] CVS: ayttm/src dialog.c,1.3,1.4
- Index(es):