From 8cc4341a62d2803e7b1b6072ff04a4bf3e5efe69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Ferenc=20Nagy-Egri?= Date: Wed, 15 Nov 2023 22:21:13 +0100 Subject: [PATCH] Fix formatting --- lib/src/Utils/File.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/Utils/File.c b/lib/src/Utils/File.c index 354a027a..e4fe74bb 100644 --- a/lib/src/Utils/File.c +++ b/lib/src/Utils/File.c @@ -389,8 +389,8 @@ char *cl_util_read_exe_relative_text_file(const char *const rel_path, cl_int err = CL_SUCCESS; size_t exe_folder_length; OCLERROR_RET(cl_util_executable_folder(NULL, &exe_folder_length), err, end); - MEM_CHECK(abs_path = (char *)malloc(exe_folder_length - + strlen(rel_path) + 1), + MEM_CHECK(abs_path = + (char *)malloc(exe_folder_length + strlen(rel_path) + 1), err, end); OCLERROR_RET(cl_util_executable_folder(abs_path, NULL), err, end); strcat(strcat(abs_path, "/"), rel_path);