diff options
author | Michael Brown | 2007-06-28 19:38:50 +0200 |
---|---|---|
committer | Michael Brown | 2007-06-28 19:38:50 +0200 |
commit | d465ae978556a84fd43380ceca8c55a86b2733fd (patch) | |
tree | 2ff532b2fb9cda3fd3b25b5554cde1836deebc30 | |
parent | Mildly ugly hack to force correct linkage. (diff) | |
download | ipxe-d465ae978556a84fd43380ceca8c55a86b2733fd.tar.gz ipxe-d465ae978556a84fd43380ceca8c55a86b2733fd.tar.xz ipxe-d465ae978556a84fd43380ceca8c55a86b2733fd.zip |
Bugfix: iobuf->data always points to the start of the allocated
portion, not to the bit we want to currently write to...
-rw-r--r-- | src/net/udp/tftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/udp/tftp.c b/src/net/udp/tftp.c index 4613f59e..a7560041 100644 --- a/src/net/udp/tftp.c +++ b/src/net/udp/tftp.c @@ -165,7 +165,7 @@ static int tftp_send_rrq ( struct tftp_request *tftp ) { rrq = iob_put ( iobuf, sizeof ( *rrq ) ); rrq->opcode = htons ( TFTP_RRQ ); iob_put ( iobuf, - snprintf ( iobuf->data, iob_tailroom ( iobuf ), + snprintf ( rrq->data, iob_tailroom ( iobuf ), "%s%coctet%cblksize%c%d%ctsize%c0", path, 0, 0, 0, tftp_request_blksize, 0, 0 ) + 1 ); |