diff options
Diffstat (limited to 'apps/netutils/ftpc/ftpc_rpwd.c')
-rw-r--r-- | apps/netutils/ftpc/ftpc_rpwd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/netutils/ftpc/ftpc_rpwd.c b/apps/netutils/ftpc/ftpc_rpwd.c index ed60cfeb0..91dd1504f 100644 --- a/apps/netutils/ftpc/ftpc_rpwd.c +++ b/apps/netutils/ftpc/ftpc_rpwd.c @@ -105,7 +105,7 @@ FAR char *ftpc_rpwd(SESSION handle) return NULL; } start++; - + end = strchr(start, '\"'); if (!end) { @@ -120,7 +120,7 @@ FAR char *ftpc_rpwd(SESSION handle) * * len = end - start + 1 = 11 (+ NUL terminator) */ - + len = end - start + 1; pwd = (char *)malloc(len + 1); if (!pwd) @@ -128,7 +128,7 @@ FAR char *ftpc_rpwd(SESSION handle) ndbg("Failed to allocate string\n"); return NULL; } - + /* Copy the string into the allocated memory */ memcpy(pwd, start, len); |