]> Git repositories of Nishi - tewi.git/commitdiff
decrement instead of increment
authorNishi <nishi@nishi.boats>
Thu, 19 Sep 2024 09:30:51 +0000 (09:30 +0000)
committerNishi <nishi@nishi.boats>
Thu, 19 Sep 2024 09:30:51 +0000 (09:30 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@72 8739d7e6-ffea-ec47-b151-bdff447c6205

Server/server.c

index 678ff375394f661a6fac5378e1dd944b29164a44..e8ab79a8ffa7c0386f1024ced3e0236363a14b56 100644 (file)
@@ -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;