From b1b39adf115394ccbe93a17dea1d29bc6cf67356 Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Tue, 18 Oct 2016 13:12:35 -0700 Subject: [PATCH] Fix chewing_fuzzer. Set CHEWING_USER_PATH to /tmp instead, since the executable directory is read only on CF. Should fix #13. --- libchewing/chewing_fuzzer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libchewing/chewing_fuzzer.c b/libchewing/chewing_fuzzer.c index 4703c5e9b..e7b6e610d 100644 --- a/libchewing/chewing_fuzzer.c +++ b/libchewing/chewing_fuzzer.c @@ -15,7 +15,7 @@ int stress_main(int argc, char** argv); char* dir = dirname(exe_path); // Assume data files are at the same location as executable. setenv("CHEWING_PATH", dir, 0); - setenv("CHEWING_USER_PATH", dir, 0); + setenv("CHEWING_USER_PATH", "/tmp", 0); return 0; }