1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-15 12:29:35 +00:00

FreeBSD: fix refactoring some more - sysctl produces a string

This commit is contained in:
Nikolai Lifanov 2016-12-02 19:43:51 -05:00
parent cc1dca7a2b
commit 4c8addcfb5

View File

@ -65,9 +65,7 @@ static int get_exec_path (char *exec_path, const size_t exec_path_sz)
sysctl (mib, 4, exec_path, &size, NULL, 0);
const ssize_t len = readlink (tmp, exec_path, exec_path_sz - 1);
if (len == -1) return -1;
const size_t len = strlen (exec_path);
#else
#error Your Operating System is not supported or detected