summaryrefslogtreecommitdiff
path: root/src/sp_utils.c
diff options
context:
space:
mode:
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 3107f77..0fae9ba 100644
--- a/src/sp_utils.c
+++ b/src/sp_utils.c
@@ -300,7 +300,7 @@ void sp_log_disable(const char* restrict path, const char* restrict arg_name,
300 char* char_repr = NULL; 300 char* char_repr = NULL;
301 if (arg_value) { 301 if (arg_value) {
302 char_repr = zend_string_to_char(arg_value); 302 char_repr = zend_string_to_char(arg_value);
303 sp_sanitize_charstring(char_repr, 255); 303 sp_sanitize_charstring(char_repr, SPCFG(log_max_len));
304 } 304 }
305 if (alias) { 305 if (alias) {
306 sp_log_auto( 306 sp_log_auto(
@@ -341,7 +341,7 @@ void sp_log_disable_ret(const char* restrict path,
341 } 341 }
342 if (ret_value) { 342 if (ret_value) {
343 char_repr = zend_string_to_char(ret_value); 343 char_repr = zend_string_to_char(ret_value);
344 sp_sanitize_charstring(char_repr, 255); 344 sp_sanitize_charstring(char_repr, SPCFG(log_max_len));
345 } 345 }
346 if (alias) { 346 if (alias) {
347 sp_log_auto( 347 sp_log_auto(