Commit c3b144b6 authored by David Johnson's avatar David Johnson
Browse files

Whoops.

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