mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-10-30 21:44:27 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			327 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			327 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| --- 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';
 |