shithub: riscv

Download patch

ref: e19308ee166dd085f7773621471a5fc589af45d4
parent: dff69d59222cc0431bdea15ee31a87b557872c08
author: ftrvxmtrx <ftrvxmtrx@gmail.com>
date: Tue Oct 18 16:22:25 EDT 2016

sam: fixup :(

--- a/sys/src/cmd/samterm/plan9.c
+++ b/sys/src/cmd/samterm/plan9.c
@@ -214,10 +214,10 @@
 			s = strstr(s, ".\n");
 			if(s == nil)
 				break;
-			if(s[-1] != '\n')
+			s += 2;
+			if(s[-3] != '\n')
 				continue;
 			s[0] = '';
-			s += 2;
 			replaced = 1;
 		}
 		n += sprint(data+n, ".\n");