|
@ -89,7 +89,6 @@ bool ethash_get_default_dirname(char* strbuf, size_t buffsize) |
|
|
static const char dir_suffix[] = ".ethash/"; |
|
|
static const char dir_suffix[] = ".ethash/"; |
|
|
strbuf[0] = '\0'; |
|
|
strbuf[0] = '\0'; |
|
|
char* home_dir = getenv("HOME"); |
|
|
char* home_dir = getenv("HOME"); |
|
|
|
|
|
|
|
|
size_t len = strlen(home_dir); |
|
|
size_t len = strlen(home_dir); |
|
|
if (!ethash_strncat(strbuf, buffsize, home_dir, len)) { |
|
|
if (!ethash_strncat(strbuf, buffsize, home_dir, len)) { |
|
|
return false; |
|
|
return false; |
|
|