[ngspice] fix reading binary data for preview

Authored by sgerlach on Aug 3 2018, 9:23 PM.