Fix off by one in path allocation for oident file path.
Hell, that's lame.
This commit is contained in:
parent
7967a47be0
commit
ba4b9b9941
@ -2057,7 +2057,7 @@ void oidentd_dump(list_t *connl)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
filename = (char *)malloc(strlen(home) + strlen("/.oidentd.conf"));
|
filename = (char *)malloc(strlen(home) + strlen("/.oidentd.conf") + 1);
|
||||||
if(filename == NULL)
|
if(filename == NULL)
|
||||||
fatal("Out of memory.");
|
fatal("Out of memory.");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user