projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- Allocate buffer large enough to contain UNIX_PATH_MAX size pathnames in case of...
[oweals/gnunet.git]
/
src
/
util
/
crypto_mpi.c
diff --git
a/src/util/crypto_mpi.c
b/src/util/crypto_mpi.c
index 8e52424cf808d1634b4620c8a094c21536ff155f..5a503c6391c2a6513b28d25fb997b1dc87c1cd55 100644
(file)
--- 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);
}
}