From 90f0d47a03d02e6b19d24b6a745fe30de1e03418 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Thu, 2 Jun 2011 14:38:01 +0000 Subject: soloscli: fix new lines in soloscli If the string received from the ADSL firmware is missing \n, add it in. Signed-off-by: Nathan Williams SVN-Revision: 27096 --- package/soloscli/patches/001-newline.patch | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'package/soloscli/patches') diff --git a/package/soloscli/patches/001-newline.patch b/package/soloscli/patches/001-newline.patch index 69cd5b28a6..4b663e8898 100644 --- a/package/soloscli/patches/001-newline.patch +++ b/package/soloscli/patches/001-newline.patch @@ -1,11 +1,15 @@ --- a/soloscli/soloscli.c +++ b/soloscli/soloscli.c -@@ -238,7 +238,7 @@ +@@ -238,7 +238,11 @@ } if (strcmp(buf,pid) == 0) { /* printf("Sequence matches.\n"); */ - printf("%s",bufp); -+ printf("%s\n",bufp); ++ if(buf[(len-1)] == '\n'){ ++ printf("%s",bufp); ++ } else { ++ printf("%s\n",bufp); ++ } } else { printf("Sequence incorrect.\n"); buf[i] = '\n'; -- cgit v1.2.3