Mercurial > pidgin
changeset 5512:e41b04bb4afe
[gaim-migrate @ 5911]
make, THEN commit :-/
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sun, 25 May 2003 13:53:11 +0000 |
parents | d64bbc7ab746 |
children | d1524728d491 |
files | src/html.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/html.c Sun May 25 13:41:02 2003 +0000 +++ b/src/html.c Sun May 25 13:53:11 2003 +0000 @@ -91,7 +91,7 @@ struct g_url *parse_url(char *url) { - struct g_url *test = g_new0(struct g_url); + struct g_url *test = g_new0(struct g_url, 1); char scan_info[255]; char port[5]; int f; @@ -117,7 +117,7 @@ snprintf(port, sizeof(port), "80"); } if (f == 1) - snprintf(test->page, sizeof(test->page), ""); + test->page[0] = '\0'; sscanf(port, "%d", &test->port); return test;