svn commit: r380006 - in head/chinese/libchewing: . files

Vanilla I. Shu vanilla at FreeBSD.org
Thu Feb 26 14:28:15 UTC 2015


Author: vanilla
Date: Thu Feb 26 14:28:14 2015
New Revision: 380006
URL: https://svnweb.freebsd.org/changeset/ports/380006
QAT: https://qat.redports.org/buildarchive/r380006/

Log:
  Fix runtime error with wrong datadir.
  
  Obtained from:	James Hung via facebook.

Added:
  head/chinese/libchewing/files/patch-src_porting__layer_src_plat__path.c   (contents, props changed)
Modified:
  head/chinese/libchewing/Makefile

Modified: head/chinese/libchewing/Makefile
==============================================================================
--- head/chinese/libchewing/Makefile	Thu Feb 26 14:14:32 2015	(r380005)
+++ head/chinese/libchewing/Makefile	Thu Feb 26 14:28:14 2015	(r380006)
@@ -3,6 +3,7 @@
 
 PORTNAME=	libchewing
 PORTVERSION=	0.4.0
+PORTREVISION=	1
 CATEGORIES=	chinese textproc
 
 MAINTAINER=	ports at FreeBSD.org

Added: head/chinese/libchewing/files/patch-src_porting__layer_src_plat__path.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/libchewing/files/patch-src_porting__layer_src_plat__path.c	Thu Feb 26 14:28:14 2015	(r380006)
@@ -0,0 +1,15 @@
+--- src/porting_layer/src/plat_path.c.orig	2015-02-26 14:13:31 UTC
++++ src/porting_layer/src/plat_path.c
+@@ -36,10 +36,10 @@ int get_search_path(char *path, size_t p
+     } else {
+         home = getenv("HOME");
+         if (home) {
+-            snprintf(path, path_len, "%s/.chewing" SEARCH_PATH_SEP CHEWING_DATADIR "/libchewing", home);
++            snprintf(path, path_len, "%s/.chewing" SEARCH_PATH_SEP CHEWING_DATADIR, home);
+         } else {
+             // No HOME ?
+-            strncpy(path, SEARCH_PATH_SEP CHEWING_DATADIR "/libchewing", path_len);
++            strncpy(path, SEARCH_PATH_SEP CHEWING_DATADIR, path_len);
+         }
+     }
+ 


More information about the svn-ports-all mailing list