From 9430332ae50e777dfb427f5ea861cd908db44b14 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Wed, 15 Aug 2012 17:02:48 +0200 Subject: [PATCH] ir.c: strcmp->memcpy --- ir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir.c b/ir.c index 9deae24..f1c9094 100644 --- a/ir.c +++ b/ir.c @@ -2698,7 +2698,7 @@ static bool ir_builder_gen_field(ir_builder *self, ir_value *field) } name[0] = '.'; - strcpy(name+1, field->name); /* no strncpy - we used strlen above */ + memcpy(name+1, field->name, len); /* no strncpy - we used strlen above */ name[len+1] = 0; def.name = code_genstring(name); -- 2.39.2