Browse Source

- minor, invert condition

development
Andreas Romeyke 7 months ago
parent
commit
69e557b6fc
  1. 3
      src/helper/check_helper.c

3
src/helper/check_helper.c

@ -27,8 +27,7 @@ char * secstrcat (char * dest, const char * src, const size_t * maxsize_p) {
fprintf(stderr, "internal error, dest is NULL!\n");
exit(EXIT_FAILURE);
}
if (NULL == src) {
} else {
if (NULL != src) {
assert(NULL != maxsize_p);
size_t maxsize = *maxsize_p;
size_t destsize = strnlen(dest, maxsize);

Loading…
Cancel
Save