If the string received from the ADSL firmware is missing \n, add it in. Signed-off-by: Nathan Williams <nathan@traverse.com.au> SVN-Revision: 27096master
parent
7d8d47d29e
commit
90f0d47a03
@ -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';
|
||||
|
Loading…
Reference in new issue