nshlib/nsh_telnetd.c: Print the end line of the MOTD correctly.

This commit is contained in:
Ouss4 2020-04-29 05:33:15 +01:00 committed by Xiang Xiao
parent c98960cbf4
commit 679896328d

View File

@ -116,12 +116,12 @@ static int nsh_telnetmain(int argc, char *argv[])
/* Output the platform message of the day */ /* Output the platform message of the day */
platform_motd(vtbl->iobuffer, IOBUFFERSIZE); platform_motd(vtbl->iobuffer, IOBUFFERSIZE);
fprintf(pstate->cn_outstream, "%s/n", vtbl->iobuffer); fprintf(pstate->cn_outstream, "%s\n", vtbl->iobuffer);
# else # else
/* Output the fixed message of the day */ /* 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
#endif #endif