mem: Use correct len with strlcpy

pull/4300/head
Jeff Lucovsky 6 years ago committed by Victor Julien
parent b026fbb519
commit 42452b327c

@ -172,7 +172,7 @@ SC_ATOMIC_EXTERN(unsigned int, engine_stage);
exit(EXIT_FAILURE); \
} \
} else { \
strlcpy(ptrmem, (a), _len); \
strlcpy(ptrmem, (a), _scstrndup_len); \
*(ptrmem + _len) = '\0'; \
} \
\
@ -296,7 +296,7 @@ SC_ATOMIC_EXTERN(unsigned int, engine_stage);
exit(EXIT_FAILURE); \
} \
} else { \
strlcpy(ptrmem, (a), _len); \
strlcpy(ptrmem, (a), _scstrndup_len); \
*(ptrmem + _len) = '\0'; \
} \
(void*)ptrmem; \

Loading…
Cancel
Save