Ignore:
Timestamp:
2011-06-02T16:38:01+02:00 (5 years ago)
Author:
florian
Message:

[package] 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 <nathan@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/soloscli/patches/001-newline.patch

    r23619 r27096  
    11--- a/soloscli/soloscli.c 
    22+++ b/soloscli/soloscli.c 
    3 @@ -238,7 +238,7 @@ 
     3@@ -238,7 +238,11 @@ 
    44        } 
    55        if (strcmp(buf,pid) == 0) { 
    66 /*             printf("Sequence matches.\n"); */ 
    77-               printf("%s",bufp); 
    8 +               printf("%s\n",bufp); 
     8+               if(buf[(len-1)] == '\n'){ 
     9+                       printf("%s",bufp); 
     10+               } else { 
     11+                       printf("%s\n",bufp); 
     12+               } 
    913        } else { 
    1014                printf("Sequence incorrect.\n"); 
Note: See TracChangeset for help on using the changeset viewer.