From 0827e924e5b6dd28938f451fcbd1f7d53900b678 Mon Sep 17 00:00:00 2001 From: chenxiaoquan233 Date: Sun, 10 May 2020 14:05:20 +0800 Subject: [PATCH] bugfix --- src/src/Server/Server.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/src/Server/Server.cpp b/src/src/Server/Server.cpp index ebc0a72..8a3f920 100644 --- a/src/src/Server/Server.cpp +++ b/src/src/Server/Server.cpp @@ -342,7 +342,7 @@ bool Server::parse_path() recv(client_sock, buf, 1000 * sizeof(char), 0); - int pos = 0; + /*int pos = 0; while(pos < strlen(buf)) { char addr[1000]; @@ -350,8 +350,8 @@ bool Server::parse_path() pos += strlen(addr) + sizeof('\n'); char * abs_path = new char[1000]; sprintf(abs_path, "%s/%s", path, addr); - set_dir(abs_path); - } + //set_dir(abs_path); + }*/ sprintf(r_cmd, "%s", "INFO"); int res = send(client_sock, r_cmd, 4, 0);