Mercurial > pidgin
comparison libgaim/protocols/msn/sync.c @ 20391:0b0ecee55091
The second msn.tgz from SF Patch #1621854 from Ka-Hing Cheung.
"new version, fixes some crashes because group_id is char * but in some
places it's set to an int (!). skadotnet, I don't understand why you need
`if (!strcmp(type, "MFN")) {` in so many places, so I didn't include most
of them. I also have different versions of some of your fixes because I
already fixed them.
Group manipulations may still not work, at least it's not crashing :-)"
committer: Richard Laager <rlaager@wiktel.com>
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Sun, 15 Apr 2007 02:43:47 +0000 |
parents | e354528c4163 |
children |
comparison
equal
deleted
inserted
replaced
20390:d634f88e25d8 | 20391:0b0ecee55091 |
---|---|
84 | 84 |
85 static void | 85 static void |
86 lsg_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) | 86 lsg_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) |
87 { | 87 { |
88 MsnSession *session = cmdproc->session; | 88 MsnSession *session = cmdproc->session; |
89 const char *name; | 89 const char *name, *group_id; |
90 int group_id; | 90 |
91 | 91 group_id = cmd->params[0]; |
92 group_id = atoi(cmd->params[0]); | |
93 name = gaim_url_decode(cmd->params[1]); | 92 name = gaim_url_decode(cmd->params[1]); |
94 | 93 |
95 msn_group_new(session->userlist, group_id, name); | 94 msn_group_new(session->userlist, group_id, name); |
96 | 95 |
97 /* HACK */ | 96 /* HACK */ |