diff --git a/winpr/libwinpr/utils/debug.c b/winpr/libwinpr/utils/debug.c index 76dbcc55b..0a6ca69ef 100644 --- a/winpr/libwinpr/utils/debug.c +++ b/winpr/libwinpr/utils/debug.c @@ -349,7 +349,7 @@ char **winpr_backtrace_symbols(void *buffer, size_t *used) { HANDLE process = GetCurrentProcess(); t_win_stack *data = (t_win_stack *)buffer; - size_t line_len = (data->max > 1024) ? data->max : 1024; + size_t line_len = 1024; size_t i; char *lines = calloc(data->used + 1, sizeof(char *) * line_len); char **vlines = (char **)lines;