Browse Source
Merge pull request #2555 from rogers0/PR/fix_hurd_max_path
Fix of PATH_MAX for GNU/Hurd
pull/2563/head
Max Lv
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
2 deletions
-
src/manager.c
|
@ -1131,8 +1131,9 @@ main(int argc, char **argv) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (manager_address == NULL) { |
|
|
if (manager_address == NULL) { |
|
|
manager_address = ss_malloc(PATH_MAX); |
|
|
|
|
|
snprintf(manager_address, PATH_MAX, "%s/.ss-manager.socks", workdir); |
|
|
|
|
|
|
|
|
size_t manager_address_size = strlen(workdir) + 20; |
|
|
|
|
|
manager_address = ss_malloc(manager_address_size); |
|
|
|
|
|
snprintf(manager_address, manager_address_size, "%s/.ss-manager.socks", workdir); |
|
|
LOGI("using the default manager address: %s", manager_address); |
|
|
LOGI("using the default manager address: %s", manager_address); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|