Mercurial > pidgin.yaz
comparison src/protocols/oscar/icq.c @ 7301:0ed0ac132b1b
[gaim-migrate @ 7885]
Fix a little bug where if someone has info set, then they set their
info to nothing, Gaim thinks the person still has the old info.
Also fix a crash, I'm not really sure why it wasn't crashing Sean,
but it makes more sense this way.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 19 Oct 2003 05:54:41 +0000 |
parents | ad243bc63184 |
children | cb3dd3a4c71c |
comparison
equal
deleted
inserted
replaced
7300:41bbe5534441 | 7301:0ed0ac132b1b |
---|---|
357 time(&t); | 357 time(&t); |
358 tm = gmtime(&t); | 358 tm = gmtime(&t); |
359 strftime(timestr, 30, "%a, %d %b %Y %T %Z", tm); | 359 strftime(timestr, 30, "%a, %d %b %Y %T %Z", tm); |
360 | 360 |
361 /* The length of xml included the null terminating character */ | 361 /* The length of xml included the null terminating character */ |
362 xmllen = 500 + strlen(name) + strlen(msg) + strlen(sess->sn) + strlen(alias) + strlen(timestr) + 1; | 362 xmllen = 225 + strlen(name) + strlen(msg) + strlen(sess->sn) + strlen(alias) + strlen(timestr) + 1; |
363 | 363 |
364 if (!(xml = (char *)malloc(xmllen*sizeof(char)))) | 364 if (!(xml = (char *)malloc(xmllen*sizeof(char)))) |
365 return -ENOMEM; | 365 return -ENOMEM; |
366 snprintf(xml, xmllen, "<icq_sms_message>\n" | 366 snprintf(xml, xmllen, "<icq_sms_message>\n" |
367 "\t<destination>%s</destination>\n" | 367 "\t<destination>%s</destination>\n" |