Skip to content
Snippets Groups Projects
Commit c3b144b6 authored by David Johnson's avatar David Johnson
Browse files

Whoops.

parent 31fac7fb
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ u_int8_t *swr_fill_str(char *str,int len) {
u_int8_t *retval = NULL;
retval = (u_int8_t *)malloc(sizeof(u_int8_t)*len);
if (retval != NULL) {
strncpy((char *)retval,str,len);
memcpy((char *)retval,str,len);
}
return retval;
}
......@@ -911,7 +911,7 @@ rmcp_error_t rmcp_ctx_setsecure(rmcp_ctx_t *ctx,
ctx->gen_key_len = gen_key_len;
}
}
return retval;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment