diff options
author | Pete Fritchman <petef@FreeBSD.org> | 2005-06-03 03:13:02 +0000 |
---|---|---|
committer | Pete Fritchman <petef@FreeBSD.org> | 2005-06-03 03:13:02 +0000 |
commit | dfbf58447c49727540a518aee6f8f8dba7c5286c (patch) | |
tree | 69126dfe6704bfe1a12d95b4a6e0777e708633cd /emulators | |
parent | Fix breakage I caused. (diff) |
Fix an initial crash that prevents zsnes from starting on some
machines. Bump PORTREVISION.
Submitted by: Travis L. Poppe <tlp@LiquidX.org>
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/zsnes/Makefile | 1 | ||||
-rw-r--r-- | emulators/zsnes/files/patch-linux-zfilew.c | 21 |
2 files changed, 22 insertions, 0 deletions
diff --git a/emulators/zsnes/Makefile b/emulators/zsnes/Makefile index e5355f4fb097..c3e026b0c3fc 100644 --- a/emulators/zsnes/Makefile +++ b/emulators/zsnes/Makefile @@ -7,6 +7,7 @@ PORTNAME= zsnes PORTVERSION= 1.42 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= emulators MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} diff --git a/emulators/zsnes/files/patch-linux-zfilew.c b/emulators/zsnes/files/patch-linux-zfilew.c new file mode 100644 index 000000000000..f4ad601d7248 --- /dev/null +++ b/emulators/zsnes/files/patch-linux-zfilew.c @@ -0,0 +1,21 @@ +$FreeBSD$ + +--- linux/zfilew.c Fri Jan 14 06:11:19 2005 ++++ linux/zfilew.c.new Thu Jun 2 19:29:43 2005 +@@ -474,11 +474,12 @@ + + if ((homedir = (char *)getenv("HOME")) == 0) + { +- homedir = (char *)malloc(ZCFG_DIR_LEN); +- getcwd(homedir, ZCFG_DIR_LEN); ++ getcwd(zcfgdir, ZCFG_DIR_LEN); ++ } ++ else ++ { ++ strcpy(zcfgdir, homedir); + } +- strcpy(zcfgdir, homedir); +- free(homedir); + strcat(zcfgdir, ZCFG_DIR); + tmp = opendir(zcfgdir); + if (tmp == NULL) |