diff --git a/src/include/utils/elog.h b/src/include/utils/elog.h index d37fa4ec3..d25944505 100755 --- a/src/include/utils/elog.h +++ b/src/include/utils/elog.h @@ -276,7 +276,7 @@ typedef struct ErrorContextCallback { #define securec_check(errno, charList, ...) \ { \ if (EOK != errno) { \ - freeSecurityFuncSpace(charList, ##__VA_ARGS__); \ + freeSecurityFuncSpace((char*)charList, ##__VA_ARGS__); \ switch (errno) { \ case EINVAL: \ elog(ERROR, \ @@ -321,7 +321,7 @@ typedef struct ErrorContextCallback { #define securec_check(errno, charList, ...) \ { \ if (errno == -1) { \ - freeSecurityFuncSpace_c((char*)charList, ##__VA_ARGS__); \ + freeSecurityFuncSpace_c((char*)charList, ##__VA_ARGS__); \ printf("ERROR at %s : %d : The destination buffer or format is a NULL pointer or the invalid parameter " \ "handle is invoked..\n", \ __FILE__, \ @@ -336,7 +336,7 @@ typedef struct ErrorContextCallback { #define securec_check_ss(errno, charList, ...) \ { \ if (errno == -1) { \ - freeSecurityFuncSpace(charList, ##__VA_ARGS__); \ + freeSecurityFuncSpace((char*)charList, ##__VA_ARGS__); \ elog(ERROR, \ "%s : %d : The destination buffer or format is a NULL pointer or the invalid parameter handle is " \ "invoked.", \