From 6e74ba707e7aa451415240405050a8ca8e7344d9 Mon Sep 17 00:00:00 2001 From: Nishi Date: Thu, 19 Sep 2024 09:30:51 +0000 Subject: [PATCH] decrement instead of increment git-svn-id: file:///raid/svn-personal/tewi/trunk@72 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Server/server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/server.c b/Server/server.c index 678ff37..e8ab79a 100644 --- a/Server/server.c +++ b/Server/server.c @@ -486,8 +486,8 @@ void tw_server_pass(int sock, bool ssl, int port, SOCKADDR addr) { bool rej = false; #ifdef __MINGW32__ char* rpath = cm_strdup(path); - for(i = strlen(rpath) - 1; i >= 0; i++) { - if(rpath[i] != ':'){ + for(i = strlen(rpath) - 1; i >= 0; i--) { + if(rpath[i] != ':') { break; } rpath[i] = 0; -- 2.43.0