Viking crashes when an uncompressed DEM file is being loaded. The following patch addresses this issue.
Good spot, and thank you very much for the patch.
This has been applied to the master code base.
NB I added '(gint16 *)' conversion to give a clean compile.