rem: share->size - offset);
add: share->size);
context: static void opn_upload_start(char *user, Share *share, uint32_t offset,                             TCPC *con){	OpnUpload *upload;	char *path = file_host_path(share->path);	if (!(upload = opn_upload_new()))		return;		upload->transfer = OPN->upload_start(OPN, &upload->chunk,	                                     user, share, offset,	                                     share->size - offset);	upload->con = con;	upload->fp = fopen(path, "rb");	fseek(upload->fp, offset, SEEK_SET);		input_add(con->fd, upload, INPUT_WRITE,	          on_upload_write, TIMEOUT_DEF);	free(path);}