fix a bug in tftp.

This commit is contained in:
okuji committed 2000-05-22 19:27:35 +00:00
1 parent 3c5b1b14d9
commit f6e3c77ef1
2 files changed
+8 -2

No files matched your search

+2 -2
View File
@@ -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;