diff options
author | petef <petef@FreeBSD.org> | 2005-06-03 11:13:02 +0800 |
---|---|---|
committer | petef <petef@FreeBSD.org> | 2005-06-03 11:13:02 +0800 |
commit | db8e28bf0eb8f697f620c17ad3b87820051926ab (patch) | |
tree | 78726e8a7b6ff695a2dc66e255f45837e737f85f /emulators/zsnes | |
parent | 68ca458746107c6f7244bfbcf9510d370dac852b (diff) | |
download | freebsd-ports-gnome-db8e28bf0eb8f697f620c17ad3b87820051926ab.tar.gz freebsd-ports-gnome-db8e28bf0eb8f697f620c17ad3b87820051926ab.tar.zst freebsd-ports-gnome-db8e28bf0eb8f697f620c17ad3b87820051926ab.zip |
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/zsnes')
-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) |