aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/autopasswd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/autopasswd.c b/src/autopasswd.c
index 71ecbb9..1815506 100644
--- a/src/autopasswd.c
+++ b/src/autopasswd.c
@@ -503,7 +503,7 @@ int main(int argc, char** argv)
else
{
for (ptr = 0; ptr <= passphrase_n; ptr++)
- *(passphrase_hash + ptr) = *(passphrase + ptr);
+ *(passphrase_hash + ptr) = (byte)*(passphrase + ptr);
/* Wipe source password, however it is not yet secure to free it. (Should be done as sone as possible.) */
memset(passphrase, 0, passphrase_n * sizeof(char));
}