projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
updates.
[silc.git]
/
lib
/
silccore
/
silcnotify.c
diff --git
a/lib/silccore/silcnotify.c
b/lib/silccore/silcnotify.c
index 99f342cff65493b06064b25e00afcfef6340dab5..c3600c52eefcfe428a40bd0ccefe700c4788f7c2 100644
(file)
--- a/
lib/silccore/silcnotify.c
+++ b/
lib/silccore/silcnotify.c
@@
-101,8
+101,7
@@
SilcBuffer silc_notify_payload_encode(SilcNotifyType type, uint32 argc,
if (!x || !x_len)
continue;
- argv[k] = silc_calloc(x_len + 1, sizeof(unsigned char));
- memcpy(argv[k], x, x_len);
+ argv[k] = silc_memdup(x, x_len);
argv_lens[k] = x_len;
argv_types[k] = i + 1;
k++;