nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiaoxi...@apache.org
Subject [incubator-nuttx-apps] branch master updated: nshlib/nsh_telnetd.c: Print the end line of the MOTD correctly.
Date Wed, 29 Apr 2020 06:47:07 GMT
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/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 6798963  nshlib/nsh_telnetd.c: Print the end line of the MOTD correctly.
6798963 is described below

commit 679896328daa08a7a9be5769c4377c560485e2f5
Author: Ouss4 <abdelatif.guettouche@gmail.com>
AuthorDate: Wed Apr 29 05:33:15 2020 +0100

    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 057175c..9105e23 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
 


Mime
View raw message