From 89f69aa9ba89600c5f0954a2dad6b1dfe693bcc8 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Mon, 17 Jun 2013 20:44:00 -0400 Subject: [PATCH] libfreerdp-gdi/test: Fix segfault in gdi_convert_postfix_to_infix. --- libfreerdp/gdi/test/TestGdiRop3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreerdp/gdi/test/TestGdiRop3.c b/libfreerdp/gdi/test/TestGdiRop3.c index 5dec672a7..f33d68feb 100644 --- a/libfreerdp/gdi/test/TestGdiRop3.c +++ b/libfreerdp/gdi/test/TestGdiRop3.c @@ -175,7 +175,7 @@ char* gdi_convert_postfix_to_infix(char* postfix) dl = al + bl + cl + 3; - d = malloc(cl + 1); + d = malloc(dl + 1); sprintf_s(d, dl, "(%s%s%s)", b ? b : "", c, a); Stack_Push(stack, d);