Removed the use of the lastIndexOf function which was replaced by the builtin strrchr function
This commit is contained in:
parent
f981c06fc3
commit
285c9ef20b
@ -473,7 +473,7 @@ class FTPServer : public TCPServer<T>
|
||||
char *dirCopy = (char *)malloc((sizeof(char) * strlen(client->_currentDirectory)) + 1);
|
||||
strcpy(dirCopy, client->_currentDirectory);
|
||||
|
||||
char *p = lastIndexOf(dirCopy, '/');
|
||||
char *p = strrchr(dirCopy, '/');
|
||||
if (dirCopy == p)
|
||||
{
|
||||
*(p + 1) = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user