diff options
author | cube <cube@pkgsrc.org> | 2005-04-16 14:43:49 +0000 |
---|---|---|
committer | cube <cube@pkgsrc.org> | 2005-04-16 14:43:49 +0000 |
commit | 75f87f80fb24cc51edac9bf40d4919abbfc7969d (patch) | |
tree | f513eafbb837663cda29e29e203ce1ee5b3ed4f4 | |
parent | 5a0bc237708b32ae59c7e5e73e607d4532b97235 (diff) | |
download | pkgsrc-75f87f80fb24cc51edac9bf40d4919abbfc7969d.tar.gz |
Import a patch from the package I had made for this in pkgsrc-wip. While
I really don't remember where I had found this patch, sanity-checking the
return value of a fopen can't be a bad thing. PKGREVISION++.
-rw-r--r-- | games/lmarbles/Makefile | 4 | ||||
-rw-r--r-- | games/lmarbles/distinfo | 3 | ||||
-rw-r--r-- | games/lmarbles/patches/patch-ab | 13 |
3 files changed, 17 insertions, 3 deletions
diff --git a/games/lmarbles/Makefile b/games/lmarbles/Makefile index 10d4693aebf..51527b5d6eb 100644 --- a/games/lmarbles/Makefile +++ b/games/lmarbles/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.3 2005/04/11 21:45:51 tv Exp $ +# $NetBSD: Makefile,v 1.4 2005/04/16 14:43:49 cube Exp $ DISTNAME= lmarbles-1.0.7 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=lgames/} diff --git a/games/lmarbles/distinfo b/games/lmarbles/distinfo index 915338ea6fe..2fc20276a97 100644 --- a/games/lmarbles/distinfo +++ b/games/lmarbles/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.2 2005/02/23 23:12:00 agc Exp $ +$NetBSD: distinfo,v 1.3 2005/04/16 14:43:49 cube Exp $ SHA1 (lmarbles-1.0.7.tar.gz) = 25b0a635f53a3ab351247ac2820cbd6951d7050d RMD160 (lmarbles-1.0.7.tar.gz) = 5fc90ff923848496b1fbce63473a22fcc716c345 Size (lmarbles-1.0.7.tar.gz) = 829635 bytes SHA1 (patch-aa) = b453e75a29848a470275d06bc97e9fe09a12e1b8 +SHA1 (patch-ab) = ddd9a96c56b40d4b392b1091d5f537c97e845559 diff --git a/games/lmarbles/patches/patch-ab b/games/lmarbles/patches/patch-ab new file mode 100644 index 00000000000..531da73e299 --- /dev/null +++ b/games/lmarbles/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1 2005/04/16 14:43:49 cube Exp $ + +--- src/sdl.c.orig 2002-08-08 04:37:50.000000000 +0200 ++++ src/sdl.c +@@ -173,6 +173,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 |