fixes #8: incorrect string/format parsing when using -d on jdate due to undefined behaviour of strncpy() across different platforms. using sscanf() instead.