libfreerdp-gdi/test: Fix segfault in gdi_convert_postfix_to_infix.

This commit is contained in:
Mike Gilbert 2013-06-17 20:44:00 -04:00
parent 96d5910a75
commit 89f69aa9ba

View File

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