figlet/figlet-random.patch

11 lines
186 B
Diff
Raw Normal View History

--- chkfont.c
+++ chkfont.c
@@ -68,6 +68,7 @@
ptr=(char *)malloc(size);
if (ptr==NULL) {
fprintf(stderr,"%s: Out of memory\n",myname);
+ return(NULL);
}
else {
return(ptr);