From 15871f8cc176ba1cf4dd544dea466121f343b39b Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Fri, 22 Nov 2019 17:19:10 +0900 Subject: [PATCH] Fix error log Use returned pointer from strerror_r(). Change-Id: I38d23a4ebe4a13cee4a3c70fa9203fb8eb707181 Signed-off-by: Sangyoon Jang --- plugin/app2sd/server/app2sd_internals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/app2sd/server/app2sd_internals.c b/plugin/app2sd/server/app2sd_internals.c index a65116c..b97f38a 100644 --- a/plugin/app2sd/server/app2sd_internals.c +++ b/plugin/app2sd/server/app2sd_internals.c @@ -342,7 +342,7 @@ int _app2sd_create_file_system(const char *device_path) if (fp == NULL) { err_str = strerror_r(errno, err_buf, sizeof(err_buf)); _E("unable to access (%s) error is (%d, %s)", - device_path, errno, err_buf); + device_path, errno, err_str); return APP2EXT_ERROR_ACCESS_FILE; } fclose(fp); -- 2.7.4