1
0
mirror of https://github.com/rofl0r/proxychains-ng synced 2025-01-08 22:22:52 +08:00

fix missing braces

This commit is contained in:
Pranav Kant 2015-05-21 18:46:00 +05:30
parent 9ab7dbeb3b
commit 204100befb

View File

@ -49,13 +49,13 @@ static void set_own_dir(const char *argv0) {
size_t l = strlen(argv0); size_t l = strlen(argv0);
while(l && argv0[l - 1] != '/') while(l && argv0[l - 1] != '/')
l--; l--;
if(l == 0) if(l == 0) {
#ifdef SUPER_SECURE #ifdef SUPER_SECURE
memcpy(own_dir, "/dev/null/", 2); memcpy(own_dir, "/dev/null/", 2);
#else #else
memcpy(own_dir, ".", 2); memcpy(own_dir, ".", 2);
#endif #endif
else { } else {
memcpy(own_dir, argv0, l - 1); memcpy(own_dir, argv0, l - 1);
own_dir[l] = 0; own_dir[l] = 0;
} }