Fix segmentation fault caused by strcmp() on nonexistent argv.
Pass maintainership to submitter. PR: 117912 Submitted by: Sunry Chen <sunrychen at gmail.com>
This commit is contained in:
parent
c0b65f5f9c
commit
11da2c4220
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=203022
2 changed files with 9 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue