nsh/login: FIx error prompt length

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi 2023-03-03 14:17:50 +08:00 committed by Xiang Xiao
parent 68fee5effb
commit 2e49d78400

View File

@ -238,7 +238,7 @@ int nsh_login(FAR struct console_stdio_s *pstate)
/* Too many failed login attempts */
write(OUTFD(pstate), g_loginfailure, strlen(g_loginsuccess));
write(OUTFD(pstate), g_loginfailure, strlen(g_loginfailure));
return -1;
}