diff options
author | delphij <delphij@FreeBSD.org> | 2007-12-12 05:08:50 +0800 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2007-12-12 05:08:50 +0800 |
commit | 7600fce63e1a244fa859c170c80173ae4b5c2644 (patch) | |
tree | 8e8da8d93a8e94ec6df55a75fc75e2ea8a2cfac0 /chinese | |
parent | dbe992a750522cbc8dcebb026c99c788ffa804c9 (diff) | |
download | freebsd-ports-gnome-7600fce63e1a244fa859c170c80173ae4b5c2644.tar.gz freebsd-ports-gnome-7600fce63e1a244fa859c170c80173ae4b5c2644.tar.zst freebsd-ports-gnome-7600fce63e1a244fa859c170c80173ae4b5c2644.zip |
Fix segmentation fault caused by strcmp() on nonexistent argv.
Pass maintainership to submitter.
PR: 117912
Submitted by: Sunry Chen <sunrychen at gmail.com>
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/hanzim/Makefile | 9 | ||||
-rw-r--r-- | chinese/hanzim/files/patch-hanzim.c | 6 |
2 files changed, 9 insertions, 6 deletions
diff --git a/chinese/hanzim/Makefile b/chinese/hanzim/Makefile index 90d1db012f16..9553bdd6b69c 100644 --- a/chinese/hanzim/Makefile +++ b/chinese/hanzim/Makefile @@ -8,13 +8,16 @@ PORTNAME= hanzim PORTVERSION= 1.3 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= chinese tk84 -MASTER_SITES= http://kamares.ucsd.edu/~arobert/Files/Chinese/ +MASTER_SITES= http://kamares.ucsd.edu/~arobert/Files/Chinese/ \ + http://www.525183.com/freebsd/hanzim/ \ + http://www.chinatinco.com/freebsd/hanzim/ \ + http://525183.serverbox.org/freebsd/hanzim/ MASTER_SITE_SUBDIR= . Old EXTRACT_SUFX= .tgz -MAINTAINER= ports@FreeBSD.org +MAINTAINER= sunrychen@gmail.com COMMENT= A Chinese character learning-aid program BUILD_DEPENDS+= wish8.4:${PORTSDIR}/x11-toolkits/tk84 diff --git a/chinese/hanzim/files/patch-hanzim.c b/chinese/hanzim/files/patch-hanzim.c index ff0a88cbfde6..55ad0c3a701e 100644 --- a/chinese/hanzim/files/patch-hanzim.c +++ b/chinese/hanzim/files/patch-hanzim.c @@ -1,11 +1,11 @@ ---- hanzim.c.orig Wed Mar 20 01:34:31 2002 -+++ hanzim.c Sat Jun 14 09:20:04 2003 +--- ./hanzim.c.orig 2002-03-20 14:34:31.000000000 +0800 ++++ ./hanzim.c 2007-11-08 16:33:14.000000000 +0800 @@ -204,6 +204,16 @@ main(int argc, char *argv[]) { Tcl_Interp *interp; +/* hanzim need a running XFree to do its initial setup, rectify */ -+ if (!(strcmp(argv[1], "-port-install"))) ++ if (argc>1 && !(strcmp(argv[1], "-port-install"))) + { + char *portdatadir = "%%PREFIX%%/lib/hanzim"; + init_vars(portdatadir); |