shithub: neatpost

Download patch

ref: 20d081c279e125781a24e2ddc97662d10915ad60
parent: 5e43317b804956a28de723c70cb525a13e433f2e
author: Ali Gholami Rudi <ali@rudi.ir>
date: Tue Nov 14 18:37:18 EST 2017

out: fix reading eps command without width and height

Reported by Dirk-Wilhelm Peters <peters@schwertfisch.de>.

--- a/out.c
+++ b/out.c
@@ -285,8 +285,9 @@
 	FILE *filp;
 	int nspec, nbb;
 	spec = strcut(eps, spec);
-	if (!eps[0] || (nspec = sscanf(spec, "%d %d", &hwid, &vwid)) < 0)
+	if (!eps[0])
 		return;
+	nspec = sscanf(spec, "%d %d", &hwid, &vwid);
 	if (nspec < 1)
 		hwid = 0;
 	if (nspec < 2)