Commit ecb65549 authored by Aleksy Barcz's avatar Aleksy Barcz

Revert "fixed last 2 bytes loss on save in szbedit (#1099)"

This reverts commit eaa305a2.
parent e61b5f93
......@@ -438,7 +438,7 @@ void SaveFile(char * path, int lines, int full, int avg)
// towrite = lines * sizeof(short int);
//} else
// do not write average value
towrite = lines * sizeof(short int);
towrite = (lines - 1) * sizeof(short int);
if (write(fd, buf, towrite) != towrite ) {
char *str;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment