mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-20 21:43:41 +00:00
Fix #2599
This commit is contained in:
+1
-1
@@ -272,7 +272,7 @@ start_plugin(const char *plugin,
|
||||
if (cwd) {
|
||||
#else
|
||||
char cwd[PATH_MAX];
|
||||
if (!getcwd(cwd, PATH_MAX)) {
|
||||
if (getcwd(cwd, PATH_MAX) != NULL) {
|
||||
#endif
|
||||
new_path_len = strlen(current_path) + strlen(cwd) + 2;
|
||||
new_path = ss_malloc(new_path_len);
|
||||
|
||||
Reference in New Issue
Block a user