(get_str): initialize pad space to zeor

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4306 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1998-01-20 22:01:23 +00:00
parent ee70295579
commit 6879a8cb28

View File

@@ -366,6 +366,7 @@ get_str(const void *pw, size_t pw_len, const void *salt, size_t salt_len,
p = malloc(len);
if(p == NULL)
return NULL;
memset (p, 0, len);
memcpy(p, pw, pw_len);
memcpy(p + pw_len, salt, salt_len);
*ret_len = len;