Fix a potential buffer overflow
strncpy wouldn't append the null byte in case the source
string length is >= destination buffer.
's_test_directory' is already zero initialized. So leaving
the last byte alone is enough ensure the buffer is null byte
terminated.
Signed-off-by: Ponnuvel Palaniyappan <pponnuvel@gmail.com>