diff options
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c index a6c4fad8..bfcc28a9 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1671,7 +1671,7 @@ encode_sasl_pass_blowfish (char *user, char *pass, char *data) memset (encrypted_pass, 0, pass_len); plain_pass = (char*)malloc (pass_len); memset (plain_pass, 0, pass_len); - memcpy (plain_pass, pass, pass_len); + memcpy (plain_pass, pass, strlen(pass)); out_ptr = (char*)encrypted_pass; in_ptr = (char*)plain_pass; |