mirror of
				https://github.com/davidgiven/fluxengine.git
				synced 2025-10-24 11:11:02 -07:00 
			
		
		
		
	Zero-pad files which don't line up with sector boundaries.
This commit is contained in:
		| @@ -366,7 +366,7 @@ void insertFile(const std::string& filename) | |||||||
| 	uint16_t checksum = 0; | 	uint16_t checksum = 0; | ||||||
|     while (!inputFile.eof()) |     while (!inputFile.eof()) | ||||||
|     { |     { | ||||||
|         uint8_t buffer[SECTOR_SIZE]; |         uint8_t buffer[SECTOR_SIZE] = {}; | ||||||
|         inputFile.read((char*) buffer, sizeof(buffer)); |         inputFile.read((char*) buffer, sizeof(buffer)); | ||||||
| 		for (int i=0; i<inputFile.gcount(); i++) | 		for (int i=0; i<inputFile.gcount(); i++) | ||||||
| 			checksum += buffer[i]; | 			checksum += buffer[i]; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user