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
/
peer.c
diff --git
a/src/util/peer.c
b/src/util/peer.c
index fa376d33320490327989d7dca26c50290b9a5289..3e4e1712debd9340adccb4f8aeb2d7f3df123d42 100644
(file)
--- a/
src/util/peer.c
+++ b/
src/util/peer.c
@@
-127,7
+127,7
@@
GNUNET_PEER_intern (const struct GNUNET_PeerIdentity *pid)
GNUNET_array_grow (table, size, size + 16);
for (i = ret; i < size; i++)
{
- table[i] = GNUNET_
malloc (sizeof (struct PeerEntry)
);
+ table[i] = GNUNET_
new (struct PeerEntry
);
table[i]->pid = i + 1;
}
}