]> sourceware.org Git - systemtap.git/commitdiff
Change how we assign _stp_module_self name/path to use THIS_MODULE
authorLukas Berk <lberk@redhat.com>
Thu, 24 Apr 2014 20:22:18 +0000 (16:22 -0400)
committerLukas Berk <lberk@redhat.com>
Thu, 24 Apr 2014 20:22:18 +0000 (16:22 -0400)
*runtime/sym.c - change _stp_module_self name/path member variables to
         be assigned using THIS_MODULE->name instead of strcpy

runtime/sym.c

index bed05d1b371cb39502e0360ea234d257e969fcec..dd5099902b1e76e79786dfc7a11e62885004ec1e 100644 (file)
@@ -609,12 +609,10 @@ static void _stp_kmodule_update_address(const char* module,
   unsigned mi, si;
 #if defined(STP_USE_DWARF_UNWINDER) && defined(STP_NEED_UNWIND_DATA)
   if(!strcmp(module, THIS_MODULE->name)){
-    static char modname[STP_MODULE_NAME_LEN];
-    strlcpy(modname, module, strlen(module)+1);
     if(reloc && !strcmp(".altinstr_replacement", reloc)){
       _stp_num_modules++;
-      _stp_module_self.name = modname;
-      _stp_module_self.path = modname; //we've already been inserted at this point, so the path variable will still be unique
+      _stp_module_self.name = THIS_MODULE->name;
+      _stp_module_self.path = THIS_MODULE->name; //we've already been inserted at this point, so the path variable will still be unique
     }
     if(reloc && !strcmp(".note.gnu.build-id",reloc)){
       _stp_module_self.notes_sect = address;
This page took 0.029548 seconds and 5 git commands to generate.