From 0a6ec10f57406e8bebba82875309c71f1e1464a6 Mon Sep 17 00:00:00 2001 From: probonopd Date: Sat, 28 Oct 2023 14:51:16 +0200 Subject: [PATCH] Use (char *) for fsname and subtype Attempt to fix https://github.com/AppImage/type2-runtime/issues/19 --- src/runtime/runtime.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/runtime/runtime.c b/src/runtime/runtime.c index 2fe0261..e6e400d 100644 --- a/src/runtime/runtime.c +++ b/src/runtime/runtime.c @@ -901,12 +901,13 @@ int fusefs_main(int argc, char* argv[], void (* mounted)(void)) { int err; sqfs_ll* ll; + struct fuse_opt fuse_opts[] = { - {"offset=%zu", offsetof(sqfs_opts, offset), 0}, - {"timeout=%u", offsetof(sqfs_opts, idle_timeout_secs), 0}, - {"fsname=%s", "squashfuse", 0}, - {"subtype=%s", "squashfuse", 0}, - FUSE_OPT_END + {"offset=%zu", offsetof(sqfs_opts, offset), 0}, + {"timeout=%u", offsetof(sqfs_opts, idle_timeout_secs), 0}, + {"fsname=%s", (char *)"squashfuse", 0}, + {"subtype=%s", (char *)"squashfuse", 0}, + FUSE_OPT_END }; struct fuse_lowlevel_ops sqfs_ll_ops;