diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2006-11-27 15:35:18 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2006-11-27 15:35:18 +0000 |
commit | ba23e4b69341e5f3f2dbcd824663e75ebe2a581f (patch) | |
tree | d93a5298ee620a916237da4d740cede5034a80c1 /render/directory.c | |
parent | 8e530e68ae718f8675e7dcd41528d20e54a0d1bb (diff) | |
download | netsurf-ba23e4b69341e5f3f2dbcd824663e75ebe2a581f.tar.gz netsurf-ba23e4b69341e5f3f2dbcd824663e75ebe2a581f.tar.bz2 |
Update project URL.
svn path=/trunk/netsurf/; revision=3073
Diffstat (limited to 'render/directory.c')
-rw-r--r-- | render/directory.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/render/directory.c b/render/directory.c index eaaea35c6..1449b46f0 100644 --- a/render/directory.c +++ b/render/directory.c @@ -1,5 +1,5 @@ /* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2006 Richard Wilson <info@tinct.net> @@ -53,7 +53,7 @@ bool directory_convert(struct content *c, int width, int height) { if (!path) { msg_data.error = messages_get("NoMemory"); content_broadcast(c, CONTENT_MSG_ERROR, msg_data); - return false; + return false; } nice_path = malloc(strlen(path) * 4 + 1); if (!nice_path) { @@ -63,13 +63,13 @@ bool directory_convert(struct content *c, int width, int height) { } for (cnv = nice_path, tmp = path; *tmp != '\0'; *tmp++) { if (*tmp == '<') { - *cnv++ = '&'; - *cnv++ = 'l'; + *cnv++ = '&'; + *cnv++ = 'l'; *cnv++ = 't'; *cnv++ = ';'; } else if (*tmp == '>') { - *cnv++ = '&'; - *cnv++ = 'g'; + *cnv++ = '&'; + *cnv++ = 'g'; *cnv++ = 't'; *cnv++ = ';'; } else { @@ -104,13 +104,13 @@ bool directory_convert(struct content *c, int width, int height) { if ((entry->d_ino == 0) || (!strcmp(entry->d_name, ".")) || (!strcmp(entry->d_name, ".."))) continue; - + snprintf(buffer, sizeof(buffer), "<a href=\"%s/%s\">%s</a>\n", c->url, entry->d_name, entry->d_name); htmlParseChunk(c->data.html.parser, buffer, strlen(buffer), 0); } closedir(parent); - + htmlParseChunk(c->data.html.parser, footer, sizeof(footer) - 1, 0); c->type = CONTENT_HTML; return html_convert(c, width, height); |