projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
4b663e88988993856ed1a09c56ce69e5f4636335
[openwrt.git]
/
package
/
soloscli
/
patches
/
001-newline.patch
1
--- a/soloscli/soloscli.c
2
+++ b/soloscli/soloscli.c
3
@@ -238,7 +238,11 @@
4
}
5
if (strcmp(buf,pid) == 0) {
6
/* printf("Sequence matches.\n"); */
7
- printf("%s",bufp);
8
+ if(buf[(len-1)] == '\n'){
9
+ printf("%s",bufp);
10
+ } else {
11
+ printf("%s\n",bufp);
12
+ }
13
} else {
14
printf("Sequence incorrect.\n");
15
buf[i] = '\n';