You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
327 B
16 lines
327 B
14 years ago
|
--- a/soloscli/soloscli.c
|
||
|
+++ b/soloscli/soloscli.c
|
||
14 years ago
|
@@ -238,7 +238,11 @@
|
||
14 years ago
|
}
|
||
|
if (strcmp(buf,pid) == 0) {
|
||
|
/* printf("Sequence matches.\n"); */
|
||
|
- printf("%s",bufp);
|
||
14 years ago
|
+ if(buf[(len-1)] == '\n'){
|
||
|
+ printf("%s",bufp);
|
||
|
+ } else {
|
||
|
+ printf("%s\n",bufp);
|
||
|
+ }
|
||
14 years ago
|
} else {
|
||
|
printf("Sequence incorrect.\n");
|
||
|
buf[i] = '\n';
|