mirror of
https://github.com/hashcat/hashcat.git
synced 2025-06-26 01:42:36 +00:00
Merge pull request #897 from lifanov/master
FreeBSD: fix refactoring some more - sysctl produces a string
This commit is contained in:
commit
f098211ea6
@ -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);
|
sysctl (mib, 4, exec_path, &size, NULL, 0);
|
||||||
|
|
||||||
const ssize_t len = readlink (tmp, exec_path, exec_path_sz - 1);
|
const size_t len = strlen (exec_path);
|
||||||
|
|
||||||
if (len == -1) return -1;
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#error Your Operating System is not supported or detected
|
#error Your Operating System is not supported or detected
|
||||||
|
Loading…
Reference in New Issue
Block a user