Bounds check fixes in src/daemon/{main,slave}.c
This adds some bounds checks that previously were not present and fixes associated logging. There are some minor security implications for this fix, but only on systems which utilise kmem or kvm_open(files).
I wasn't sure what the intended indentation of src/daemon/main.c was (mixed tabs/spaces) so I tried my best to use the surrounding style.