From eafc49b154e8bcf5e37f23f977a348d1b8e711a2 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 4 Dec 2014 14:54:08 +0100 Subject: [PATCH] Using fixed size debug string buffers now. --- winpr/libwinpr/utils/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;