Mercurial > pidgin.yaz
comparison src/conversation.c @ 4174:cee489d38059
[gaim-migrate @ 4404]
Fix a potential buffer overflow...
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Fri, 03 Jan 2003 00:12:58 +0000 |
parents | 858822a27529 |
children | af2eeb7f7cf8 |
comparison
equal
deleted
inserted
replaced
4173:b66f960bfe60 | 4174:cee489d38059 |
---|---|
280 } | 280 } |
281 | 281 |
282 | 282 |
283 struct conversation *find_conversation(const char *name) | 283 struct conversation *find_conversation(const char *name) |
284 { | 284 { |
285 char *cuser = g_malloc(1024); | 285 char *cuser = g_malloc(BUF_LEN); |
286 struct conversation *c; | 286 struct conversation *c; |
287 GList *cnv = conversations; | 287 GList *cnv = conversations; |
288 | 288 |
289 strcpy(cuser, normalize(name)); | 289 strcpy(cuser, normalize(name)); |
290 | 290 |
317 set_convo_title(cnv); | 317 set_convo_title(cnv); |
318 } | 318 } |
319 | 319 |
320 struct log_conversation *find_log_info(const char *name) | 320 struct log_conversation *find_log_info(const char *name) |
321 { | 321 { |
322 char *pname = g_malloc(1024); | 322 char *pname = g_malloc(BUF_LEN); |
323 GList *lc = log_conversations; | 323 GList *lc = log_conversations; |
324 struct log_conversation *l; | 324 struct log_conversation *l; |
325 | 325 |
326 | 326 |
327 strcpy(pname, normalize(name)); | 327 strcpy(pname, normalize(name)); |