You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/03/03 17:44:48 UTC
[nuttx-apps] 01/02: nsh/login: FIx error prompt length
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 2e49d78400840770e896bf781b22913bd85257f1
Author: Huang Qi <hu...@xiaomi.com>
AuthorDate: Fri Mar 3 14:17:50 2023 +0800
nsh/login: FIx error prompt length
Signed-off-by: Huang Qi <hu...@xiaomi.com>
---
nshlib/nsh_login.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nshlib/nsh_login.c b/nshlib/nsh_login.c
index 82857c406..7edb9676b 100644
--- a/nshlib/nsh_login.c
+++ b/nshlib/nsh_login.c
@@ -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;
}