netutils/ftpc: Fix some crazy comparisons to determine is a file is an absolute path. Noted by Anthony Merlino.
This commit is contained in:
parent
fe3e7a7bad
commit
8af55bbdcc
@ -216,7 +216,7 @@ static FAR char *ftpc_abspath(FAR struct ftpc_session_s *session,
|
|||||||
|
|
||||||
/* Check for an absolute path */
|
/* Check for an absolute path */
|
||||||
|
|
||||||
else if (relpath[0] == '/' && relpath[1] == ':' && relpath[2] == '\\')
|
else if (relpath[0] == '/')
|
||||||
{
|
{
|
||||||
ptr = strdup(relpath);
|
ptr = strdup(relpath);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user