cat: use 1025 buffer. this allows reads to be 1024 byte
reading from disk currently returns ENOTSUP if buffer size is not multiple of sector size.
This commit is contained in:
		
							parent
							
								
									0fa5401800
								
							
						
					
					
						commit
						5806a6484f
					
				|  | @ -2,7 +2,7 @@ | |||
| 
 | ||||
| bool cat_file(FILE* fp) | ||||
| { | ||||
| 	char buffer[1024]; | ||||
| 	char buffer[1025]; | ||||
| 	size_t n_read; | ||||
| 	while ((n_read = fread(buffer, 1, sizeof(buffer) - 1, fp)) > 0) | ||||
| 	{ | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue