From 679896328daa08a7a9be5769c4377c560485e2f5 Mon Sep 17 00:00:00 2001 From: Ouss4 Date: Wed, 29 Apr 2020 05:33:15 +0100 Subject: [PATCH] nshlib/nsh_telnetd.c: Print the end line of the MOTD correctly. --- nshlib/nsh_telnetd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nshlib/nsh_telnetd.c b/nshlib/nsh_telnetd.c index 057175c95..9105e2377 100644 --- a/nshlib/nsh_telnetd.c +++ b/nshlib/nsh_telnetd.c @@ -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