Skip to content

Commit 2e49d78

Browse files
no1wudixiaoxiang781216
authored andcommitted
nsh/login: FIx error prompt length
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
1 parent 68fee5e commit 2e49d78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nshlib/nsh_login.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ int nsh_login(FAR struct console_stdio_s *pstate)
238238

239239
/* Too many failed login attempts */
240240

241-
write(OUTFD(pstate), g_loginfailure, strlen(g_loginsuccess));
241+
write(OUTFD(pstate), g_loginfailure, strlen(g_loginfailure));
242242
return -1;
243243
}
244244

0 commit comments

Comments
 (0)