mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
Merge pull request #97 from n4k/patch-1
Fix missing null byte : my_executable_directory
This commit is contained in:
commit
19042d1894
1 changed files with 1 additions and 0 deletions
|
@ -242,6 +242,7 @@ static void set_my_executable_path(void)
|
|||
my_executable_path[path_length] = '\0';
|
||||
my_executable_directory = (char *)malloc(dirname_length + 2);
|
||||
strncpy(my_executable_directory, my_executable_path, dirname_length+1);
|
||||
my_executable_directory[dirname_length+1] = '\0';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue