summaryrefslogtreecommitdiff
path: root/src/utils/utils.c
diff options
context:
space:
mode:
authorZuhaitz <zuhaitz.zechhub@gmail.com>2026-01-13 14:52:58 +0000
committerGitHub <noreply@github.com>2026-01-13 14:52:58 +0000
commit606db9c49b4f6f6514cbce92a11fb0b6a47fc122 (patch)
tree4b86f4ad20a66b0e984feb4d5a2abaf6eaa1227f /src/utils/utils.c
parent856267f36e60211ba537d63a80c5d36aa4436a4f (diff)
parent7eb91d69beb19da7a7cb7ac84625f701890ce6eb (diff)
Merge pull request #36 from z-libs/pr-34-testing
Added a few fixes to #34
Diffstat (limited to 'src/utils/utils.c')
-rw-r--r--src/utils/utils.c5
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;