1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-28 05:00:17 +02:00
openwrt-xburst/package/soloscli/patches/001-newline.patch

16 lines
327 B
Diff
Raw Normal View History

--- 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';