Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxiaoquan233 committed May 10, 2020
1 parent 8b42a86 commit 0827e92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/src/Server/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,16 +342,16 @@ 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];
sscanf(buf + pos, "%s", addr);
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);
Expand Down

0 comments on commit 0827e92

Please sign in to comment.