From b3622fefc5fa42c8ebdb395f1216cb52ab9a5787 Mon Sep 17 00:00:00 2001 From: Nishi Date: Wed, 18 Sep 2024 12:30:33 +0000 Subject: [PATCH] use space not emsp git-svn-id: file:///raid/svn-personal/tewi/trunk@60 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Server/install.nsi | 3 +++ Server/server.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Server/install.nsi b/Server/install.nsi index f361faa..b0a60cf 100644 --- a/Server/install.nsi +++ b/Server/install.nsi @@ -12,6 +12,7 @@ UninstPage instfiles Section CreateDirectory "$INSTDIR\etc" CreateDirectory "$INSTDIR\www" + CreateDirectory "$INSTDIR\www\icons" CreateDirectory "$INSTDIR\bin" SetOutPath "$INSTDIR\bin" File "tewi.exe" @@ -19,6 +20,8 @@ Section File /oname=tewi.conf.default "../example-win.conf" SetOutPath "$INSTDIR\www" File /oname=index.html "../itworks.html" + SetOutPath "$INSTDIR\www\icons" + File "../Icons/*.png" CreateDirectory "$SMPROGRAMS\Tewi HTTPd" CreateShortcut "$SMPROGRAMS\Tewi HTTPd\Start Tewi HTTPd.lnk" "$INSTDIR\bin\tewi.exe" "" diff --git a/Server/server.c b/Server/server.c index 9140faf..7fa31c4 100644 --- a/Server/server.c +++ b/Server/server.c @@ -620,8 +620,8 @@ void tw_server_pass(int sock, bool ssl, int port, SOCKADDR addr) { addstring(&str, "\n"); addstring(&str, " \"icon\"\n", icon); addstring(&str, " %h\n", items[i], itm); - addstring(&str, "   %h  \n", showmime); - addstring(&str, "   %s  \n", size); + addstring(&str, " %h \n", showmime); + addstring(&str, " %s \n", size); addstring(&str, "\n"); free(itm); } -- 2.43.0