shithub: neatpost

Download patch

ref: 80d35921d39896b247ddcdf15ead5a0b2a028aba
parent: 4e1e04ac903989a6973d5b9c4df1821f0e1d9366
author: Ali Gholami Rudi <ali@rudi.ir>
date: Fri Sep 26 06:45:57 EDT 2014

out: ignore invalid size requests

--- a/out.c
+++ b/out.c
@@ -142,7 +142,8 @@
 
 void outsize(int s)
 {
-	o_s = s;
+	if (s > 0)
+		o_s = s;
 }
 
 void outcolor(int c)