projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dd390b
)
Bug fix.
author
Pekka Riikonen
<priikone@silcnet.org>
Thu, 1 Feb 2001 22:35:01 +0000
(22:35 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Thu, 1 Feb 2001 22:35:01 +0000
(22:35 +0000)
lib/silccrypt/silcpkcs.c
patch
|
blob
|
history
diff --git
a/lib/silccrypt/silcpkcs.c
b/lib/silccrypt/silcpkcs.c
index 5398142725d12e224ed2a496c41c390f52224c39..fe3b09c065c8da6381526a3e26065dc1deb823c5 100644
(file)
--- a/
lib/silccrypt/silcpkcs.c
+++ b/
lib/silccrypt/silcpkcs.c
@@
-257,7
+257,7
@@
char *silc_pkcs_encode_identifier(char *username, char *host, char *realname,
}
silc_buffer_push(buf, buf->data - buf->head);
- identifier = silc_calloc(tlen, sizeof(*identifier));
+ identifier = silc_calloc(tlen
+ 1
, sizeof(*identifier));
memcpy(identifier, buf->data, tlen);
silc_buffer_free(buf);