diff --git a/arch/sim/src/sim/sim_wifidriver.c b/arch/sim/src/sim/sim_wifidriver.c index 52aced6e5d..103cfc2fa2 100644 --- a/arch/sim/src/sim/sim_wifidriver.c +++ b/arch/sim/src/sim/sim_wifidriver.c @@ -453,7 +453,12 @@ static int utf8_escape(char *outp, int out_size, switch (*inp) { case '\\': - case '\'': + if (*(inp + 1) == '\'') + { + inp++; + break; + } + case '\"': if (res_size++ >= out_size) {