Fixed a bug in dodsmord.c where the output file would be used as the input