From 922b74be9e5d2732f68bc504933c4f038ffc3b4f Mon Sep 17 00:00:00 2001 From: Cary R Date: Tue, 22 Jan 2013 09:18:54 -0800 Subject: [PATCH] Fix uninitialized buffer when drawing a real VPI argument --- tgt-vvp/draw_vpi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tgt-vvp/draw_vpi.c b/tgt-vvp/draw_vpi.c index f7e52ad7a..2583256c3 100644 --- a/tgt-vvp/draw_vpi.c +++ b/tgt-vvp/draw_vpi.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003-2012 Stephen Williams (steve@icarus.com) + * Copyright (c) 2003-2013 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -404,6 +404,7 @@ static void draw_vpi_taskfunc_args(const char*call_string, args[idx].real_flag = 1; args[idx].stack = real_stack_need; real_stack_need += 1; + buffer[0] = 0; break; case IVL_VT_STRING: /* Eval the string into the stack, and tell VPI