Mercurial > pidgin
changeset 2614:3e2f455cb924
[gaim-migrate @ 2627]
what kinds of drugs and alcohol were being consumed when this was written?
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 25 Oct 2001 20:58:01 +0000 |
parents | 6f7e1fc3e132 |
children | 8b84198651c9 |
files | src/util.c |
diffstat | 1 files changed, 15 insertions(+), 26 deletions(-) [+] |
line wrap: on
line diff
--- a/src/util.c Thu Oct 25 20:24:00 2001 +0000 +++ b/src/util.c Thu Oct 25 20:58:01 2001 +0000 @@ -149,10 +149,8 @@ t--; strncpy(url_buf, c, t - c); url_buf[t - c] = 0; - cnt += - g_snprintf(&text[cnt++], 1024, "<A HREF=\"%s\">%s</A>", - url_buf, url_buf); - cnt--; + cnt += g_snprintf(&text[cnt], 1024, "<A HREF=\"%s\">%s</A>", + url_buf, url_buf); c = t; break; } @@ -179,11 +177,9 @@ t--; strncpy(url_buf, c, t - c); url_buf[t - c] = 0; - cnt += - g_snprintf(&text[cnt++], 1024, - "<A HREF=\"http://%s\">%s</A>", url_buf, - url_buf); - cnt--; + cnt += g_snprintf(&text[cnt], 1024, + "<A HREF=\"http://%s\">%s</A>", url_buf, + url_buf); c = t; break; } @@ -200,10 +196,8 @@ t--; strncpy(url_buf, c, t - c); url_buf[t - c] = 0; - cnt += - g_snprintf(&text[cnt++], 1024, "<A HREF=\"%s\">%s</A>", - url_buf, url_buf); - cnt--; + cnt += g_snprintf(&text[cnt], 1024, "<A HREF=\"%s\">%s</A>", + url_buf, url_buf); c = t; break; } @@ -224,11 +218,9 @@ t--; strncpy(url_buf, c, t - c); url_buf[t - c] = 0; - cnt += - g_snprintf(&text[cnt++], 1024, - "<A HREF=\"ftp://%s\">%s</A>", url_buf, - url_buf); - cnt--; + cnt += g_snprintf(&text[cnt], 1024, + "<A HREF=\"ftp://%s\">%s</A>", url_buf, + url_buf); c = t; break; } @@ -245,10 +237,8 @@ t--; strncpy(url_buf, c, t - c); url_buf[t - c] = 0; - cnt += - g_snprintf(&text[cnt++], 1024, "<A HREF=\"%s\">%s</A>", - url_buf, url_buf); - cnt--; + cnt += g_snprintf(&text[cnt], 1024, "<A HREF=\"%s\">%s</A>", + url_buf, url_buf); c = t; break; } @@ -299,13 +289,12 @@ if (badchar(*t)) { if (*(t - 1) == '.') t--; - cnt += - g_snprintf(&text[cnt++], 1024, - "<A HREF=\"mailto:%s\">%s</A>", url_buf, url_buf); + cnt += g_snprintf(&text[cnt], 1024, + "<A HREF=\"mailto:%s\">%s</A>", url_buf, + url_buf); text[cnt] = 0; - cnt--; c = t; break;