diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-03-02 05:41:33 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-03-02 05:41:33 +0800 |
commit | 57a019d6b4296ec8f760d4086b70f016e170c9a8 (patch) | |
tree | 5a18dfe34077084efead6246324d9e28267595d6 | |
parent | 8338701e52803f58655e6831f797e1dbd4fdc1ba (diff) | |
download | marcuscom-ports-57a019d6b4296ec8f760d4086b70f016e170c9a8.tar.gz marcuscom-ports-57a019d6b4296ec8f760d4086b70f016e170c9a8.tar.zst marcuscom-ports-57a019d6b4296ec8f760d4086b70f016e170c9a8.zip |
Fix a crash that occurs when passing a URL to epiphany on the command line.
See http://bugzilla.gnome.org/show_bug.cgi?id=333051 for more details.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@5820 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | www/epiphany/Makefile | 3 | ||||
-rw-r--r-- | www/epiphany/files/patch-src_ephy-main.c | 19 |
2 files changed, 21 insertions, 1 deletions
diff --git a/www/epiphany/Makefile b/www/epiphany/Makefile index 7e34a171f..fdee8dfd5 100644 --- a/www/epiphany/Makefile +++ b/www/epiphany/Makefile @@ -3,11 +3,12 @@ # Whom: Joe Marcus Clarke <marcus@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/www/epiphany/Makefile,v 1.100 2006/02/25 00:25:56 marcus Exp $ +# $MCom: ports/www/epiphany/Makefile,v 1.101 2006/02/28 05:07:03 marcus Exp $ # PORTNAME= epiphany PORTVERSION= 1.9.8 +PORTREVISION= 1 CATEGORIES= www gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/1.9 diff --git a/www/epiphany/files/patch-src_ephy-main.c b/www/epiphany/files/patch-src_ephy-main.c new file mode 100644 index 000000000..ea704e38b --- /dev/null +++ b/www/epiphany/files/patch-src_ephy-main.c @@ -0,0 +1,19 @@ +--- ephy-main.c.orig Wed Mar 1 16:34:13 2006 ++++ ephy-main.c Wed Mar 1 16:34:15 2006 +@@ -569,14 +569,13 @@ main (int argc, + + for (i = 0; arguments[i] != NULL; ++i) + { +- char *uri, *path = NULL; ++ char *uri, *path = NULL, rpath[PATH_MAX]; + +- path = realpath (arguments[i], NULL); ++ path = realpath (arguments[i], rpath); + if (path != NULL) + { + uri = g_locale_to_utf8 (path, -1, + NULL, NULL, &error); +- free (path); + } + else + { |