Mercurial > pidgin
comparison src/protocols/oscar/bstream.c @ 10993:b6ca6d3c5332
[gaim-migrate @ 12831]
*** empty log message ***
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 09 Jun 2005 04:47:18 +0000 |
parents | 8d74ae785a46 |
children | f2431a7e33aa |
comparison
equal
deleted
inserted
replaced
10992:2bda44d66641 | 10993:b6ca6d3c5332 |
---|---|
160 | 160 |
161 faim_internal char *aimbs_getstr(aim_bstream_t *bs, int len) | 161 faim_internal char *aimbs_getstr(aim_bstream_t *bs, int len) |
162 { | 162 { |
163 char *ob; | 163 char *ob; |
164 | 164 |
165 if (!(ob = malloc(len+1))) | 165 if (!(ob = malloc(len + 1))) |
166 return NULL; | 166 return NULL; |
167 | 167 |
168 if (aimbs_getrawbuf(bs, ob, len) < len) { | 168 if (aimbs_getrawbuf(bs, (fu8_t *)ob, len) < len) { |
169 free(ob); | 169 free(ob); |
170 return NULL; | 170 return NULL; |
171 } | 171 } |
172 | 172 |
173 ob[len] = '\0'; | 173 ob[len] = '\0'; |
254 return len; | 254 return len; |
255 } | 255 } |
256 | 256 |
257 faim_internal int aimbs_putstr(aim_bstream_t *bs, const char *str) | 257 faim_internal int aimbs_putstr(aim_bstream_t *bs, const char *str) |
258 { | 258 { |
259 aimbs_putraw(bs, str, strlen(str)); | 259 return aimbs_putraw(bs, (fu8_t *)str, strlen(str)); |
260 } | 260 } |
261 | 261 |
262 faim_internal int aimbs_putbs(aim_bstream_t *bs, aim_bstream_t *srcbs, int len) | 262 faim_internal int aimbs_putbs(aim_bstream_t *bs, aim_bstream_t *srcbs, int len) |
263 { | 263 { |
264 | 264 |