changeset 1622:1acef460964a

[gaim-migrate @ 1632] trying to prevent buffer overflows committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 20 Mar 2001 19:16:17 +0000
parents cf2071b095ca
children 8684c0315818
files src/util.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.c	Mon Mar 19 23:53:50 2001 +0000
+++ b/src/util.c	Tue Mar 20 19:16:17 2001 +0000
@@ -117,8 +117,8 @@
 gint linkify_text(char *text)
 {
 	char *c, *t;
-	char *cpy = g_malloc(strlen(text) * 2 + 1);
-	char url_buf[512];
+	char *cpy = g_malloc(strlen(text) * 3 + 1);
+	char url_buf[BUF_LEN * 4];
 	int cnt = 0;
 	/* Assumes you have a buffer able to cary at least BUF_LEN * 2 bytes */