changeset 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 b66f960bfe60
children 3a45bec96521
files src/conversation.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;