Commit ecb65549 authored by Aleksy Barcz's avatar Aleksy Barcz
Browse files

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

This reverts commit eaa305a2.
parent e61b5f93
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;