shithub: mc

Download patch

ref: f000461027b34e34b6e9bfdc54a5cce2a058f705
parent: 41a66f79ac8284bbffb9820deb8655b6bdda1c9b
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Jun 7 11:11:38 EDT 2015

Set params to empty.

--- a/libstd/fmt2.myr
+++ b/libstd/fmt2.myr
@@ -131,6 +131,7 @@
 		(c, fmt) = striter(fmt)
 		match c
 		| '%':
+			params = ""
 			if fmt.len > 1
 				if fmt[0] == '%' castto(byte)
 					sbputc(sb, '%')