This commit is contained in:
Pranav Kant 2017-05-14 18:00:30 +00:00 committed by GitHub
commit 003415fcac

View File

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