Using fixed size debug string buffers now.

This commit is contained in:
Armin Novak 2014-12-04 14:54:08 +01:00
parent cff721f23b
commit eafc49b154

View File

@ -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;