Mercurial > pidgin
comparison src/protocols/msn/msg.c @ 19820:ea23c4c010cf
[gaim-migrate @ 17006]
fix msg send bug
tested ok on windows
committed by MaYuan<mayuan2006@gmail.com>
committer: Ethan Blanton <elb@pidgin.im>
| author | Ma Yuan <mayuan2006@gmail.com> |
|---|---|
| date | Wed, 23 Aug 2006 17:01:31 +0000 |
| parents | 1aa5494587e8 |
| children | 21cb7a79ac7f |
comparison
equal
deleted
inserted
replaced
| 19819:bf8fb36097ee | 19820:ea23c4c010cf |
|---|---|
| 466 memcpy(n, &footer, 4); | 466 memcpy(n, &footer, 4); |
| 467 n += 4; | 467 n += 4; |
| 468 } | 468 } |
| 469 else | 469 else |
| 470 { | 470 { |
| 471 if (body != NULL) | 471 if (body != NULL){ |
| 472 { | |
| 473 memcpy(n, body, body_len); | 472 memcpy(n, body, body_len); |
| 474 n += body_len; | 473 n += body_len; |
| 475 // n = '\0'; | 474 *n = '\0'; |
| 476 } | 475 } |
| 477 } | 476 } |
| 478 | 477 |
| 479 if (ret_size != NULL) | 478 if (ret_size != NULL){ |
| 480 { | |
| 481 *ret_size = n - base; | 479 *ret_size = n - base; |
| 482 | 480 |
| 483 if (*ret_size > 1664) | 481 if (*ret_size > 1664) |
| 484 *ret_size = 1664; | 482 *ret_size = 1664; |
| 485 } | 483 } |
