mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-04 18:40:51 +00:00
Protect the name passed into emit_struct().
The name passed into emit_struct is sometimes created via va(), but the struct creation code also uses va. This makes a mess of names.
This commit is contained in:
parent
3e1b034aaf
commit
59a683d39e
1 changed files with 1 additions and 0 deletions
|
@ -223,6 +223,7 @@ emit_structure (const char *name, int su, struct_def_t *defs, type_t *type,
|
||||||
def_t *struct_def;
|
def_t *struct_def;
|
||||||
def_t field_def;
|
def_t field_def;
|
||||||
|
|
||||||
|
name = save_string (name);
|
||||||
if (!type) {
|
if (!type) {
|
||||||
memset (&new, 0, sizeof (new));
|
memset (&new, 0, sizeof (new));
|
||||||
type = &new;
|
type = &new;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue