@@ -39,15 +39,14 @@ static int fpm_php_trace_dump(struct fpm_child_s *child, FILE *slowlog) /* {{{ *
3939 int callers_limit = child -> wp -> config -> request_slowlog_trace_depth ;
4040 pid_t pid = child -> pid ;
4141 struct timeval tv ;
42- static const int buf_size = 1024 ;
43- char buf [buf_size ];
42+ char buf [1024 ];
4443 long execute_data ;
4544 long path_translated ;
4645 long l ;
4746
4847 gettimeofday (& tv , 0 );
4948
50- zlog_print_time (& tv , buf , buf_size );
49+ zlog_print_time (& tv , buf , sizeof ( buf ) );
5150
5251 fprintf (slowlog , "\n%s [pool %s] pid %d\n" , buf , child -> wp -> config -> name , (int ) pid );
5352
@@ -57,7 +56,7 @@ static int fpm_php_trace_dump(struct fpm_child_s *child, FILE *slowlog) /* {{{ *
5756
5857 path_translated = l ;
5958
60- if (0 > fpm_trace_get_strz (buf , buf_size , path_translated )) {
59+ if (0 > fpm_trace_get_strz (buf , sizeof ( buf ) , path_translated )) {
6160 return -1 ;
6261 }
6362
@@ -103,7 +102,7 @@ static int fpm_php_trace_dump(struct fpm_child_s *child, FILE *slowlog) /* {{{ *
103102 ZEND_UNREACHABLE ();
104103 }
105104 } else {
106- if (0 > fpm_trace_get_strz (buf , buf_size , function_name + offsetof(zend_string , val ))) {
105+ if (0 > fpm_trace_get_strz (buf , sizeof ( buf ) , function_name + offsetof(zend_string , val ))) {
107106 return -1 ;
108107 }
109108
@@ -149,7 +148,7 @@ static int fpm_php_trace_dump(struct fpm_child_s *child, FILE *slowlog) /* {{{ *
149148
150149 file_name = l ;
151150
152- if (0 > fpm_trace_get_strz (buf , buf_size , file_name + offsetof(zend_string , val ))) {
151+ if (0 > fpm_trace_get_strz (buf , sizeof ( buf ) , file_name + offsetof(zend_string , val ))) {
153152 return -1 ;
154153 }
155154
0 commit comments