mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 08:39:28 +00:00
fix a bug in tftp.
This commit is contained in:
1 parent
3c5b1b14d9
commit
f6e3c77ef1
2 files changed
+8
-2
No files matched your search
+2
-2
@@ -401,8 +401,8 @@ tftp_dir (char *dirname)
|
||||
ch = nul_terminate (dirname);
|
||||
/* Make the request string (octet, blksize and tsize). */
|
||||
len = (grub_sprintf ((char *) tp.u.rrq,
|
||||
"%s%coctet%cblksize%c%d%ctsize%c0",
|
||||
dirname, 0, 0, 0, TFTP_MAX_PACKET, 0, 0)
|
||||
"%s%coctet%cblksize%c%d%ctsize%c0%c0",
|
||||
dirname, 0, 0, 0, TFTP_MAX_PACKET, 0, 0, 0)
|
||||
+ TFTP_MIN_PACKET + 1);
|
||||
/* Restore the original DIRNAME. */
|
||||
dirname[grub_strlen (dirname)] = ch;
|
||||
|
||||
Reference in new issue
Block a user