fix string data type definition in Ghidra script

develop
Ben Lubar 2020-03-16 14:18:43 -05:00
parent 725eb1a217
commit 19d62d9a2b
No known key found for this signature in database
GPG Key ID: 92939677AB59EDA4
1 changed files with 2 additions and 2 deletions

@ -153,8 +153,8 @@ public class import_df_structures extends GhidraScript
var dataPlus = new UnionDataType("_string_dataplus"); var dataPlus = new UnionDataType("_string_dataplus");
dataPlus.setToDefaultAlignment(); dataPlus.setToDefaultAlignment();
dataPlus.add(rep); dataPlus.add(dtm.getPointer(rep, currentProgram.getDefaultPointerSize()));
dataPlus.add(new PointerDataType(new TerminatedStringDataType())); dataPlus.add(dtm.getPointer(new TerminatedStringDataType(), currentProgram.getDefaultPointerSize()));
createDataType(dtcStd, dataPlus); createDataType(dtcStd, dataPlus);
stringDataType.add(dataPlus, "_M_p", null); stringDataType.add(dataPlus, "_M_p", null);