diff options
author | David Teirney <david@teirney.net> | 2012-05-02 20:06:53 +1200 |
---|---|---|
committer | David Teirney <david@teirney.net> | 2012-05-06 18:04:38 +1200 |
commit | 01cc2a7994061811a13a93716e44747c739c2ecc (patch) | |
tree | fef9d0aff2284464d48a3220151696bed871520f /lib/cmyth | |
parent | e57db292f176ca88979ffdc63edd500070f8cc7a (diff) |
Explicitly set the write mode to be false for ANN FileTransfer.
Diffstat (limited to 'lib/cmyth')
-rw-r--r-- | lib/cmyth/libcmyth/connection.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/cmyth/libcmyth/connection.c b/lib/cmyth/libcmyth/connection.c index 34afb52f78..9d1372139c 100644 --- a/lib/cmyth/libcmyth/connection.c +++ b/lib/cmyth/libcmyth/connection.c @@ -536,7 +536,7 @@ cmyth_conn_connect_file(cmyth_proginfo_t prog, cmyth_conn_t control, int err = 0; int count = 0; int r; - int ann_size = sizeof("ANN FileTransfer []:[][]:[]"); + int ann_size = sizeof("ANN FileTransfer 0[]:[][]:[]"); cmyth_file_t ret = NULL; if (!prog) { @@ -599,7 +599,7 @@ cmyth_conn_connect_file(cmyth_proginfo_t prog, cmyth_conn_t control, goto shut; } if (control->conn_version >= 44) { - sprintf(announcement, "ANN FileTransfer %s[]:[]%s[]:[]", + sprintf(announcement, "ANN FileTransfer %s 0[]:[]%s[]:[]", // write = false my_hostname, prog->proginfo_pathname); } else { @@ -698,7 +698,7 @@ cmyth_conn_connect_path(char* path, cmyth_conn_t control, int err = 0; int count = 0; int r, port; - int ann_size = sizeof("ANN FileTransfer []:[][]:[]"); + int ann_size = sizeof("ANN FileTransfer 0[]:[][]:[]"); struct sockaddr_in addr; socklen_t addr_size = sizeof(addr); cmyth_file_t ret = NULL; @@ -746,7 +746,7 @@ cmyth_conn_connect_path(char* path, cmyth_conn_t control, goto shut; } if (control->conn_version >= 44) { - sprintf(announcement, "ANN FileTransfer %s[]:[]%s[]:[]", + sprintf(announcement, "ANN FileTransfer %s 0[]:[]%s[]:[]", // write = false my_hostname, path); } else { |