mirror of
https://github.com/coolsnowwolf/packages.git
synced 2025-05-03 07:22:07 +08:00
12 lines
297 B
Diff
12 lines
297 B
Diff
--- a/tftp_io.c
|
|
+++ b/tftp_io.c
|
|
@@ -64,7 +64,7 @@ int tftp_send_request(int socket, struct
|
|
buf_index += strlen(mode);
|
|
buf_index++;
|
|
|
|
- for (i = 2; ; i++)
|
|
+ for (i = 2; i < OPT_NUMBER; i++)
|
|
{
|
|
if (strlen(tftp_options[i].option) == 0)
|
|
break;
|