From 6f5addb1b7c19990306c5e4b61c8365f17ea783f Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 27 Aug 2015 16:32:37 +0200 Subject: [PATCH] vhdlpp: Fixed a gcc warning. --- vhdlpp/parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vhdlpp/parse.y b/vhdlpp/parse.y index ea948a1a8..90e62f23b 100644 --- a/vhdlpp/parse.y +++ b/vhdlpp/parse.y @@ -2586,7 +2586,7 @@ suffix { $$ = $1; } | K_all { //do not have now better idea than using char constant - $$ = strcpy(new char[strlen("all"+1)], "all"); + $$ = strdup("all"); } ;