http://git.etherboot.org
/
people
/
sha0
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5de837c
)
Bugfix: iobuf->data always points to the start of the allocated
author
Michael Brown
<mcb30@etherboot.org>
Thu, 28 Jun 2007 17:38:50 +0000
(18:38 +0100)
committer
Michael Brown
<mcb30@etherboot.org>
Thu, 28 Jun 2007 17:38:50 +0000
(18:38 +0100)
portion, not to the bit we want to currently write to...
src/net/udp/tftp.c
patch
|
blob
|
history
diff --git
a/src/net/udp/tftp.c
b/src/net/udp/tftp.c
index
4613f59
..
a756004
100644
(file)
--- 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 );