aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/soloscli/patches/001-newline.patch
blob: 4b663e88988993856ed1a09c56ce69e5f4636335 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/soloscli/soloscli.c
+++ b/soloscli/soloscli.c
@@ -238,7 +238,11 @@
 	}
 	if (strcmp(buf,pid) == 0) {
 /*		printf("Sequence matches.\n"); */
-		printf("%s",bufp);
+		if(buf[(len-1)] == '\n'){
+			printf("%s",bufp);
+		} else {
+			printf("%s\n",bufp);
+		}
 	} else {
 		printf("Sequence incorrect.\n");
 		buf[i] = '\n';