nshlib/nsh_telnetd.c: Print the end line of the MOTD correctly.
This commit is contained in:
parent
c98960cbf4
commit
679896328d
@ -116,12 +116,12 @@ static int nsh_telnetmain(int argc, char *argv[])
|
||||
/* Output the platform message of the day */
|
||||
|
||||
platform_motd(vtbl->iobuffer, IOBUFFERSIZE);
|
||||
fprintf(pstate->cn_outstream, "%s/n", vtbl->iobuffer);
|
||||
fprintf(pstate->cn_outstream, "%s\n", vtbl->iobuffer);
|
||||
|
||||
# else
|
||||
/* Output the fixed message of the day */
|
||||
|
||||
fprintf(pstate->cn_outstream, "%s/n", g_nshmotd);
|
||||
fprintf(pstate->cn_outstream, "%s\n", g_nshmotd);
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user