aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhugsy2020-06-10 15:55:04 -0700
committerhugsy2020-06-10 15:55:04 -0700
commit091056079b662b8ea1d59a1b22fcd8fc96aa6b39 (patch)
tree03d2c6eba65cef63267923cab0bce7aded9c013f
parentd09215a785591560a9310931d7316d98915ade67 (diff)
downloadgef-091056079b662b8ea1d59a1b22fcd8fc96aa6b39.tar.gz
gef-091056079b662b8ea1d59a1b22fcd8fc96aa6b39.zip
[pcustom] fixed typo in create_new_structure_template()
-rw-r--r--gef.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gef.py b/gef.py
index 4b40f6e..7bc66c3 100644
--- a/gef.py
+++ b/gef.py
@@ -4760,7 +4760,7 @@ class PCustomCommand(GenericCommand):
fullname = self.get_pcustom_filepath_for_structure(mod_name)
if not self.is_valid_struct(mod_name):
info("Creating '{:s}' from template".format(fullname))
- self.create_new_structure_template(struct_name)
+ self.create_new_structure_template(struct_name, fullname)
else:
info("Editing '{:s}'".format(fullname))
@@ -4770,7 +4770,7 @@ class PCustomCommand(GenericCommand):
return retcode
- def create_new_structure_template(self, structname):
+ def create_new_structure_template(self, structname, fullname):
d = [
"from ctypes import *\n\n",
"class ", structname, "(Structure):\n",