shithub: neatroff

Download patch

ref: e437437f48e52cd408c69d3f95b33c8afcea76f4
parent: 3a15190ed4a17671ea5d97d00c9a168df7a3d65c
author: Ali Gholami Rudi <ali@rudi.ir>
date: Fri May 16 13:25:12 EDT 2014

ren: report invalid TR_DIVEND requests

--- a/ren.c
+++ b/ren.c
@@ -111,6 +111,8 @@
 
 void tr_divend(char **args)
 {
+	if (ren_div <= 0)
+		errdie("neatroff: diversion stack empty\n");
 	odiv_end();
 	ren_div--;
 }