git: 9front

Download patch

ref: af46e1737f7939365e09124cd15ec07550e5df13
parent: 5a15ec4e58d2be4c44ffd67038bae0a8b3f64aac
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 */
--