diff options
Diffstat (limited to 'src/utils/utils.c')
| -rw-r--r-- | src/utils/utils.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/utils.c b/src/utils/utils.c index 9e9c91c..19a722e 100644 --- a/src/utils/utils.c +++ b/src/utils/utils.c @@ -501,15 +501,16 @@ char *load_file(const char *fn) if (!f) { char path[1024]; - snprintf(path, sizeof(path), "/usr/local/lib/zen/%s", fn); + snprintf(path, sizeof(path), "/usr/local/share/zenc/%s", fn); f = fopen(path, "rb"); } if (!f) { char path[1024]; - snprintf(path, sizeof(path), "/usr/lib/zen/%s", fn); + snprintf(path, sizeof(path), "/usr/share/zenc/%s", fn); f = fopen(path, "rb"); } + if (!f) { return 0; |
