pkgsrc/games/lmarbles/patches/patch-ab
2005-04-16 14:51:59 +00:00

21 lines
477 B
Text

$NetBSD: patch-ab,v 1.2 2005/04/16 14:51:59 cube Exp $
--- src/sdl.c.orig 2002-08-08 04:37:50.000000000 +0200
+++ src/sdl.c
@@ -18,6 +18,7 @@
#include "sdl.h"
#include <stdlib.h>
#include <string.h>
+#include <err.h>
extern int trm_gm;
@@ -173,6 +174,8 @@ SFnt* SF_Ld(char *fname)
//table
file = fopen(path, "r");
+ if (file == NULL)
+ err(1, "SF_Ld: %s", path);
fseek(file, -1, SEEK_END);
fread(&fnt->off, 1, 1, file);
#ifdef DEBUG