From: Nishi Date: Wed, 25 Sep 2024 12:56:45 +0000 (+0000) Subject: some fix X-Git-Url: https://git.chaotic.ninja/gitweb/nishi/?a=commitdiff_plain;h=da3a9e7a488930b148d9ecbff1f38e5cfacf5da0;p=tewi.git some fix git-svn-id: file:///raid/svn-personal/tewi/trunk@159 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/README b/README index c5172d6..6ecc3c8 100644 --- a/README +++ b/README @@ -1,5 +1,5 @@ -Tewi HTTPd version 1.07 +Tewi HTTPd version 1.07A Original by Nishi diff --git a/Server/module.c b/Server/module.c index 8e6d457..5ca915a 100644 --- a/Server/module.c +++ b/Server/module.c @@ -58,6 +58,11 @@ void tw_add_version(const char* string) { void tw_add_define(const char* string) { int i; + for(i = 0; config.defined[i] != NULL; i++) { + if(strcmp(config.defined[i], string) == 0) { + return; + } + } for(i = 0; config.defined[i] != NULL; i++) ; config.defined[i] = cm_strdup(string); @@ -72,6 +77,7 @@ void tw_delete_define(const char* string) { for(; config.defined[i] != NULL; i++) { config.defined[i] = config.defined[i + 1]; } + break; } } } diff --git a/Server/tw_version.h b/Server/tw_version.h index cf549d3..e491efa 100644 --- a/Server/tw_version.h +++ b/Server/tw_version.h @@ -7,7 +7,7 @@ extern "C" { #endif -#define TW_VERSION "1.07\0" +#define TW_VERSION "1.07A\0" const char* tw_get_version(void); const char* tw_get_platform(void);