Do error when user gives NULL as input for wwwroot and fixed incorrect strlen check for wwwroot.
Previously ./darkhttpd / and ./darkhttpd '' would set wwwroot to NULL. Which would still serve /, but I think this is how it was supposed to be in the first place.
Do error when user gives NULL as input for wwwroot and fixed incorrect strlen check for wwwroot.
Previously
./darkhttpd /
and./darkhttpd ''
would set wwwroot to NULL. Which would still serve /, but I think this is how it was supposed to be in the first place.