mirror of
https://git.freebsd.org/ports.git
synced 2025-06-03 03:46:30 -04:00
Atftp is a client/server implementation of the TFTP protocol that implements RFCs 1350, 2090, 2347, 2348, and 2349. The server is multi-threaded and the client presents a friendly interface using libreadline. The current server implementation lacks IPv6 support.
11 lines
419 B
C
11 lines
419 B
C
--- tftpd_list.c.orig 2010-10-05 13:11:12.000000000 +0800
|
|
+++ tftpd_list.c 2010-10-05 13:18:09.000000000 +0800
|
|
@@ -149,7 +149,7 @@
|
|
|
|
opt_request_to_string(tftp_options, options, MAXLEN);
|
|
index = strstr(options, "multicast");
|
|
- len = (int)index - (int)options;
|
|
+ len = strlen(options) - strlen(index);
|
|
|
|
/* lock the whole list before walking it */
|
|
pthread_mutex_lock(&thread_list_mutex);
|