summaryrefslogtreecommitdiff
path: root/src/common/crypto_pwbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/crypto_pwbox.c')
-rw-r--r--src/common/crypto_pwbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/crypto_pwbox.c b/src/common/crypto_pwbox.c
index 91659db2bc..b866c7ef39 100644
--- a/src/common/crypto_pwbox.c
+++ b/src/common/crypto_pwbox.c
@@ -62,7 +62,7 @@ crypto_pwbox(uint8_t **out, size_t *outlen_out,
pwbox_encoded_setlen_data(enc, encrypted_len);
encrypted_portion = pwbox_encoded_getarray_data(enc);
- set_uint32(encrypted_portion, htonl(input_len));
+ set_uint32(encrypted_portion, htonl((uint32_t)input_len));
memcpy(encrypted_portion+4, input, input_len);
/* Now that all the data is in position, derive some keys, encrypt, and