shithub: riscv

Download patch

ref: db605e7bc8df3a88f65c8e0510d3f80bdfa6ea10
parent: a11501b24fc7735910157562a667e34db00202d6
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Thu Nov 10 11:54:02 EST 2011

libdraw: dont abort() on failed allocimage in fontresize()

--- a/sys/src/libdraw/font.c
+++ b/sys/src/libdraw/font.c
@@ -365,7 +365,6 @@
 	new = allocimage(d, Rect(0, 0, ncache*wid, f->height), CHAN1(CGrey, depth), 0, 0);
 	if(new == nil){
 		fprint(2, "font cache resize failed: %r\n");
-		abort();
 		goto Return;
 	}
 	flushimage(d, 0);	/* flush any pending errors */
--