shithub: riscv

Download patch

ref: 8c9d28f4f8ab0305689f9f1f95e137e2f20e375c
parent: e387915a8f408ad8d40ea93f6a72a7a782e58899
author: BurnZeZ <[email protected]>
date: Sat Mar 19 13:47:25 EDT 2016

libdraw: have openfont() set error string

--- a/sys/src/libdraw/openfont.c
+++ b/sys/src/libdraw/openfont.c
@@ -37,8 +37,10 @@
 	Font *fnt;
 	char *buf;
 
-	if((buf = readfile(name)) == nil)
+	if((buf = readfile(name)) == nil){
+		werrstr("openfont: %r");
 		return nil;
+	}
 	fnt = buildfont(d, buf, name);
 	free(buf);
 	return fnt;