Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 2015 14:28:14 +0000 (UTC)
From:      "Vanilla I. Shu" <vanilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r380006 - in head/chinese/libchewing: . files
Message-ID:  <201502261428.t1QESEdU022993@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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);
+         }
+     }
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502261428.t1QESEdU022993>