Mercurial > pidgin.yaz
comparison src/protocols/simple/sipmsg.c @ 11398:90290f579926
[gaim-migrate @ 13630]
a simple fix for a bug found by Daniel Atallah
committer: Tailor Script <tailor@pidgin.im>
author | Thomas Butter <tbutter> |
---|---|
date | Wed, 31 Aug 2005 22:27:16 +0000 |
parents | e5bbe5070e04 |
children | 617e67e1c985 |
comparison
equal
deleted
inserted
replaced
11397:d530188f04b8 | 11398:90290f579926 |
---|---|
36 #include "sipmsg.h" | 36 #include "sipmsg.h" |
37 | 37 |
38 struct sipmsg *sipmsg_parse_msg(gchar *msg) { | 38 struct sipmsg *sipmsg_parse_msg(gchar *msg) { |
39 char *tmp = strstr(msg, "\r\n\r\n"); | 39 char *tmp = strstr(msg, "\r\n\r\n"); |
40 struct sipmsg *smsg; | 40 struct sipmsg *smsg; |
41 if(!tmp) return NULL; | |
41 tmp[0]=0; | 42 tmp[0]=0; |
42 smsg = sipmsg_parse_header(msg); | 43 smsg = sipmsg_parse_header(msg); |
43 tmp[0]='\r'; | 44 tmp[0]='\r'; |
44 smsg->body = g_strdup(tmp+4); | 45 smsg->body = g_strdup(tmp+4); |
45 return smsg; | 46 return smsg; |