From 59a683d39e810751159cf475fd268b4ac8d30cd0 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 9 Feb 2011 17:12:47 +0900 Subject: [PATCH] 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. --- tools/qfcc/source/struct.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/qfcc/source/struct.c b/tools/qfcc/source/struct.c index 8e4d6ffcf..4337a582e 100644 --- a/tools/qfcc/source/struct.c +++ b/tools/qfcc/source/struct.c @@ -223,6 +223,7 @@ emit_structure (const char *name, int su, struct_def_t *defs, type_t *type, def_t *struct_def; def_t field_def; + name = save_string (name); if (!type) { memset (&new, 0, sizeof (new)); type = &new;