2010-10-24 21:46:32 +08:00
|
|
|
--- a/soloscli/soloscli.c
|
|
|
|
+++ b/soloscli/soloscli.c
|
2011-06-02 22:38:01 +08:00
|
|
|
@@ -238,7 +238,11 @@
|
2010-10-24 21:46:32 +08:00
|
|
|
}
|
|
|
|
if (strcmp(buf,pid) == 0) {
|
|
|
|
/* printf("Sequence matches.\n"); */
|
|
|
|
- printf("%s",bufp);
|
2011-06-02 22:38:01 +08:00
|
|
|
+ if(buf[(len-1)] == '\n'){
|
|
|
|
+ printf("%s",bufp);
|
|
|
|
+ } else {
|
|
|
|
+ printf("%s\n",bufp);
|
|
|
|
+ }
|
2010-10-24 21:46:32 +08:00
|
|
|
} else {
|
|
|
|
printf("Sequence incorrect.\n");
|
|
|
|
buf[i] = '\n';
|