diff options
author | Florian Dold <florian.dold@gmail.com> | 2014-01-20 20:17:18 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2014-01-20 20:17:18 +0000 |
commit | ba030bb143964697ba0030dcf663a6deff1a1951 (patch) | |
tree | f5e9fa65f010753c07b2a58f22d1cb62219442ac /src/util/crypto_mpi.c | |
parent | 45f27dcbeb7b385cdc4a358e44f691676db23ae2 (diff) |
- type error
Diffstat (limited to 'src/util/crypto_mpi.c')
-rw-r--r-- | src/util/crypto_mpi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/crypto_mpi.c b/src/util/crypto_mpi.c index 8e52424cf8..5a503c6391 100644 --- a/src/util/crypto_mpi.c +++ b/src/util/crypto_mpi.c @@ -52,9 +52,11 @@ adjust (void *buf, size_t size, size_t target) { + char *p = buf; + if (size < target) { - memmove (&buf[target - size], buf, size); + memmove (&p[target - size], buf, size); memset (buf, 0, target - size); } } |