diff options
author | David Teirney <david@teirney.net> | 2012-05-11 01:37:06 +1200 |
---|---|---|
committer | David Teirney <david@teirney.net> | 2012-05-11 02:24:18 +1200 |
commit | 93a569ba24e864b8a489cebd60fb2b1ceef796d8 (patch) | |
tree | a5fc3728ccbc6e37e3025f018afd17e1bb2c57d9 /lib | |
parent | d753a2ad4568f132e24c4828ebef27eab50da12f (diff) |
[cmyth] Fix memory corruption caused by incorrect size allocation for ANN FileTransfer buffer.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cmyth/libcmyth/connection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cmyth/libcmyth/connection.c b/lib/cmyth/libcmyth/connection.c index 9d1372139c..a5772758f1 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 0[]:[][]:[]"); + int ann_size = sizeof("ANN FileTransfer 0[]:[][]:[]"); cmyth_file_t ret = NULL; if (!prog) { @@ -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 0[]:[][]:[]"); + int ann_size = sizeof("ANN FileTransfer 0[]:[][]:[]"); struct sockaddr_in addr; socklen_t addr_size = sizeof(addr); cmyth_file_t ret = NULL; |