ports/ftp/atftp/files/patch-tftpd_list.c
Kevin Lo fe9dc20c2a Import atftp-0.7
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.
2010-10-05 06:23:11 +00:00

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);