summaryrefslogtreecommitdiff
path: root/src/sp_utils.c
diff options
context:
space:
mode:
authorjvoisin2024-06-14 19:26:31 +0200
committerjvoisin2024-06-14 19:26:31 +0200
commitb005df282da43a2ba17b38e7da06a69353ea2845 (patch)
tree2160bdf0bf0a96816c6cc810544faa6e84ffecc2 /src/sp_utils.c
parent95afce1fe46c91025b5c53aa05582e09c6534cd0 (diff)
Fix a portability issue
This should fix the following compilation issue: ``` /wrkdirs/usr/ports/security/snuffleupagus/work-php83/snuffleupagus-0.10.0/src/sp_utils.c:438:37: error: too few arguments provided to function-like macro invocation 438 | memcpy(mb_name, ZEND_STRL("mb_")); | ^ /usr/include/ssp/string.h:117:9: note: macro 'memcpy' defined here 117 | #define memcpy(dst, src, len) __ssp_bos_check3(memcpy, dst, src, len) ```
Diffstat (limited to 'src/sp_utils.c')
-rw-r--r--src/sp_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_utils.c b/src/sp_utils.c
index 82714c5..64de467 100644
--- a/src/sp_utils.c
+++ b/src/sp_utils.c
@@ -435,8 +435,8 @@ bool hook_function(const char* original_name, HashTable* hook_table, zif_handler
435 if (NULL == mb_name) { 435 if (NULL == mb_name) {
436 return FAILURE; 436 return FAILURE;
437 } 437 }
438 memcpy(mb_name, ZEND_STRL("mb_")); 438 memcpy(mb_name, "mb_", 3);
439 memcpy(mb_name + 3, VAR_AND_LEN(original_name)); 439 memcpy(mb_name + 3, original_name, strlen(original_name));
440 _hook_function(mb_name, hook_table, new_function); 440 _hook_function(mb_name, hook_table, new_function);
441 efree(mb_name); 441 efree(mb_name);
442 // LCOV_EXCL_STOP 442 // LCOV_EXCL_STOP