apps/netutils/ftpc: Fixed handling of url-encoded strings

This commit is contained in:
Dmitriy Linikov 2018-06-04 14:29:35 -06:00 committed by Gregory Nutt
parent 9d4b9e8a67
commit 1b4d17d9c0

View File

@ -247,7 +247,7 @@ FAR char *ftpc_dequote(FAR const char *str)
{
/* Save the binary value and skip ahead by 3 */
*ptr++ = (char)(ms << 8 | ls);
*ptr++ = (char)(ms << 4 | ls);
str += 3;
len -= 3;
continue;