mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-15 18:20:59 +00:00
Fixed get_profile_dir and get_session_dir byte missing bug
This commit is contained in:
parent
2232b1632e
commit
9eefb4bcd7
@ -4184,7 +4184,7 @@ char *get_profile_dir (const char *homedir)
|
||||
{
|
||||
#define DOT_HASHCAT ".hashcat"
|
||||
|
||||
size_t len = strlen (homedir) + 1 + strlen (DOT_HASHCAT);
|
||||
size_t len = strlen (homedir) + 1 + strlen (DOT_HASHCAT) + 1;
|
||||
|
||||
char *profile_dir = (char *) mymalloc (len + 1);
|
||||
|
||||
@ -4197,7 +4197,7 @@ char *get_session_dir (const char *profile_dir)
|
||||
{
|
||||
#define SESSIONS_FOLDER "sessions"
|
||||
|
||||
size_t len = strlen (profile_dir) + 1 + strlen (SESSIONS_FOLDER);
|
||||
size_t len = strlen (profile_dir) + 1 + strlen (SESSIONS_FOLDER) + 1;
|
||||
|
||||
char *session_dir = (char *) mymalloc (len + 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user