From 06abcb3428a327bb708ac0fa680f26f4e8efac5d Mon Sep 17 00:00:00 2001 From: Jan Macku Date: Mon, 26 Apr 2021 15:17:13 +0200 Subject: [PATCH] leveldb: fix format not a string literal --- leveldb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leveldb.c b/leveldb.c index a3d40aa9..aef03dc6 100644 --- a/leveldb.c +++ b/leveldb.c @@ -323,9 +323,9 @@ int readServices(struct service **services, char *root_path) { char *filename = NULL; if(root_path) { - asprintf(&filename, root_path); + asprintf(&filename, "%s", root_path); } else { - asprintf(&filename, RUNLEVELS "/init.d"); + asprintf(&filename, "%s", RUNLEVELS "/init.d"); } if (!(dir = opendir(filename))) {