mirror of
https://github.com/ipxe/ipxe
synced 2025-12-11 14:03:29 +03:00
Bugfix: iobuf->data always points to the start of the allocated
portion, not to the bit we want to currently write to...
This commit is contained in:
@@ -165,7 +165,7 @@ static int tftp_send_rrq ( struct tftp_request *tftp ) {
|
|||||||
rrq = iob_put ( iobuf, sizeof ( *rrq ) );
|
rrq = iob_put ( iobuf, sizeof ( *rrq ) );
|
||||||
rrq->opcode = htons ( TFTP_RRQ );
|
rrq->opcode = htons ( TFTP_RRQ );
|
||||||
iob_put ( iobuf,
|
iob_put ( iobuf,
|
||||||
snprintf ( iobuf->data, iob_tailroom ( iobuf ),
|
snprintf ( rrq->data, iob_tailroom ( iobuf ),
|
||||||
"%s%coctet%cblksize%c%d%ctsize%c0", path, 0,
|
"%s%coctet%cblksize%c%d%ctsize%c0", path, 0,
|
||||||
0, 0, tftp_request_blksize, 0, 0 ) + 1 );
|
0, 0, tftp_request_blksize, 0, 0 ) + 1 );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user