From 9f0665ce64ab1141b3b2642a615011826aaa2ad6 Mon Sep 17 00:00:00 2001 From: ngn Date: Thu, 15 Aug 2024 23:50:27 +0300 Subject: [PATCH] fix: add missing error format parameters --- src/database/files.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/database/files.c b/src/database/files.c index 6c75406..1795260 100644 --- a/src/database/files.c +++ b/src/database/files.c @@ -252,12 +252,12 @@ bool lm_database_files_del(lm_database_t *db, lm_entry_t *entry){ join(temp_path, db->dir, temp_name); if(NULL == (original = fopen(real_path, "r"))){ - lm_error_set(LM_ERR_DbFilesOpenFail); + lm_error_set(LM_ERR_DbFilesOpenFail, real_path); goto end; } if(NULL == (temp = fopen(temp_path, "a"))){ - lm_error_set(LM_ERR_DbFilesOpenFail); + lm_error_set(LM_ERR_DbFilesOpenFail, temp_path); goto end; }