[gaim-migrate @ 4404]

Fri, 03 Jan 2003 00:12:58 +0000

author
Rob Flynn <gaim@robflynn.com>
date
Fri, 03 Jan 2003 00:12:58 +0000
changeset 4174
d664bb31e8f8
parent 4173
e2528bd24e6f
child 4175
fd9442b42332

[gaim-migrate @ 4404]
Fix a potential buffer overflow...

src/conversation.c file | annotate | diff | comparison | revisions
--- a/src/conversation.c	Thu Jan 02 22:22:38 2003 +0000
+++ b/src/conversation.c	Fri Jan 03 00:12:58 2003 +0000
@@ -282,7 +282,7 @@
 
 struct conversation *find_conversation(const char *name)
 {
-	char *cuser = g_malloc(1024);
+	char *cuser = g_malloc(BUF_LEN);
 	struct conversation *c;
 	GList *cnv = conversations;
 
@@ -319,7 +319,7 @@
 
 struct log_conversation *find_log_info(const char *name)
 {
-	char *pname = g_malloc(1024);
+	char *pname = g_malloc(BUF_LEN);
 	GList *lc = log_conversations;
 	struct log_conversation *l;
 

mercurial