X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/1231a876cb81e8d8ce23bab028ca19979fc425a0..9943867fae23547e9eb727ba2f53fa5ae36252be:/package/soloscli/patches/001-newline.patch?ds=inline diff --git a/package/soloscli/patches/001-newline.patch b/package/soloscli/patches/001-newline.patch index 69cd5b28a..4b663e889 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';