mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 03:50:36 +00:00
ir.c: strcmp->memcpy
This commit is contained in:
parent
b7f9b20a2b
commit
9430332ae5
1 changed files with 1 additions and 1 deletions
2
ir.c
2
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);
|
||||
|
|
Loading…
Reference in a new issue