Shouldn't the end range for the following be params->startByte + params->byteCount - 1?
I am getting an error because of an attempt to write one byte beyond the file.
|
snprintf(byteRange, sizeof(byteRange), "bytes=%zd-%zd", |
|
params->startByte, params->startByte + params->byteCount); |
|
append_amz_header(values, 0, "x-amz-copy-source-range", byteRange); |