Update d-t-m to a0c4858g (master branch)

More robust error checking.