1
0
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:
Gabriele 'matrix' Gristina 2016-01-27 19:29:51 +01:00
parent 2232b1632e
commit 9eefb4bcd7

View File

@ -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);