projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tools: clean up Makefiles / make ccache work
[openwrt.git]
/
package
/
soloscli
/
patches
/
001-newline.patch
diff --git
a/package/soloscli/patches/001-newline.patch
b/package/soloscli/patches/001-newline.patch
index
69cd5b2
..
4b663e8
100644
(file)
--- 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
--- 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);
}
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';
} else {
printf("Sequence incorrect.\n");
buf[i] = '\n';
This page took
0.025744 seconds
and
4
git commands to generate.