diff options
author | Rainer Schuetze <r.sagitario@gmx.de> | 2015-09-07 18:18:53 (GMT) |
---|---|---|
committer | Rainer Schuetze <r.sagitario@gmx.de> | 2015-09-07 18:18:53 (GMT) |
commit | ad331ec2eb871705a555ced900745a61a0d8db84 (patch) | |
tree | 679be5e414ebcb1f1fc519822f25526a0070c4d6 | |
parent | 3906bfde2f8f4ad27597f2add3fa6cb7384f6074 (diff) | |
download | cv2pdb-ad331ec2eb871705a555ced900745a61a0d8db84.zip cv2pdb-ad331ec2eb871705a555ced900745a61a0d8db84.tar.gz cv2pdb-ad331ec2eb871705a555ced900745a61a0d8db84.tar.bz2 |
allow anonymous typedefs
-rw-r--r-- | src/cv2pdb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cv2pdb.cpp b/src/cv2pdb.cpp index 189fdff..3c0a20d 100644 --- a/src/cv2pdb.cpp +++ b/src/cv2pdb.cpp @@ -3016,7 +3016,7 @@ bool CV2PDB::addUdtSymbol(int type, const char* name) codeview_symbol* sym = (codeview_symbol*) (udtSymbols + cbUdtSymbols);
sym->udt_v1.id = S_UDT_V1;
sym->udt_v1.type = translateType(type);
- strcpy (sym->udt_v1.p_name.name, name);
+ strcpy (sym->udt_v1.p_name.name, name ? name : ""); // allow anonymous typedefs
sym->udt_v1.p_name.namelen = strlen(sym->udt_v1.p_name.name);
sym->udt_v1.len = sizeof(sym->udt_v1) + sym->udt_v1.p_name.namelen - 1 - 2;
cbUdtSymbols += sym->udt_v1.len + 2;
|