changeset 3331:8f69ff64f0bf

[gaim-migrate @ 3349] This should work a bit better. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 22 Jun 2002 02:07:48 +0000
parents af52fdf06166
children f56d084d4046
files src/util.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.c	Sat Jun 22 00:40:47 2002 +0000
+++ b/src/util.c	Sat Jun 22 02:07:48 2002 +0000
@@ -287,10 +287,10 @@
 
 			while (flag) {
 				if (badchar(*t)) {
-					while (*(t - 1) == '.') {
-						url_buf[t - cpy - 1] = '\0';
-						t--;
-					}
+					char *d;
+
+					for (d = url_buf + strlen(url_buf) - 1; *d == '.'; d--, t--)
+						*d = '\0';
 
 					cnt += g_snprintf(&text[cnt], 1024,
 							  "<A HREF=\"mailto:%s\">%s</A>", url_buf,