Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3095582
)
Fixed htls bug.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 30 Aug 2010 01:50:06 +0000
(
03:50
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 30 Aug 2010 01:50:28 +0000
(
03:50
+0200)
src/htls.c
patch
|
blob
|
blame
|
history
diff --git
a/src/htls.c
b/src/htls.c
index
060d1bf
..
907187c
100644
(file)
--- a/
src/htls.c
+++ b/
src/htls.c
@@
-73,7
+73,7
@@
static int dcmp(const void *ap, const void *bp)
static void head(char *name, struct charbuf *dst)
{
static void head(char *name, struct charbuf *dst)
{
- char *title
, *tmp
;
+ char *title;
title = sstrdup(htmlquote(name));
bprintf(dst, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
title = sstrdup(htmlquote(name));
bprintf(dst, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
@@
-82,7
+82,7
@@
static void head(char *name, struct charbuf *dst)
bprintf(dst, "<head>\n");
bprintf(dst, "<title>Index of %s</title>\n", title);
if(stylesheet) {
bprintf(dst, "<head>\n");
bprintf(dst, "<title>Index of %s</title>\n", title);
if(stylesheet) {
- bprintf(dst, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%s\" />\n", htmlquote(
tmp
));
+ bprintf(dst, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%s\" />\n", htmlquote(
stylesheet
));
} else {
bprintf(dst, "<style>\n");
bprintf(dst, "body {font-family: sans-serif; background: #eee;}\n");
} else {
bprintf(dst, "<style>\n");
bprintf(dst, "body {font-family: sans-serif; background: #eee;}\n");