shithub: scc

Download patch

ref: 45616fa5eb14079439ca632cdff42ed216fdef97
parent: ae625397ab37916be884edee90fc7d37a50e8d0d
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Sep 1 11:14:44 EDT 2018

[lib/c] Fix flush of line buffers

The line pointer was not reset.

--- a/lib/c/_flsbuf.c
+++ b/lib/c/_flsbuf.c
@@ -17,7 +17,7 @@
 		fp->flags |= _IOERR;
 		return EOF;
 	}
-	fp->rp = fp->wp = fp->buf;
+	fp->lp = fp->rp = fp->wp = fp->buf;
 
 	return 0;
 }