Browse Source

- using memcpy instead strncpy

development
Andreas Romeyke 2 months ago
parent
commit
621025c6c2
  1. 3
      src/helper/check_print.c

3
src/helper/check_print.c

@ -43,7 +43,8 @@ returncode_t __add_to_render_pipeline_via_strncpy (retmsg_t ** pointer, const ch
exit (could_not_allocate_memory);
// return could_not_allocate_memory;
}
strncpy(msg, src, src_len );
//strncpy(msg, src, src_len );
memcpy(msg, src,src_len);
actual_render->next = next;
actual_render->next->rm_msg = msg;
actual_render->next->rm_type = src_type;

Loading…
Cancel
Save