Home
last modified time | relevance | path

Searched refs:l_separator (Results 1 – 1 of 1) sorted by relevance

/systemd-251/src/basic/
Dstring-util.c724 size_t f, l, l_separator; in strextend_with_separator_internal() local
734 l_separator = strlen_ptr(separator); in strextend_with_separator_internal()
748 n += l_separator; in strextend_with_separator_internal()
794 size_t m, a, l_separator; in strextendf_with_separator() local
805 l_separator = isempty(*x) ? 0 : strlen_ptr(separator); in strextendf_with_separator()
815 …if (a - m < 17 + l_separator) { /* if there's less than 16 chars space, then enlarge the buffer fi… in strextendf_with_separator()
818 if (_unlikely_(l_separator > SIZE_MAX - 64)) /* overflow check #1 */ in strextendf_with_separator()
820 if (_unlikely_(m > SIZE_MAX - 64 - l_separator)) /* overflow check #2 */ in strextendf_with_separator()
823 n = realloc(*x, m + 64 + l_separator); in strextendf_with_separator()
832 memcpy_safe(*x + m, separator, l_separator); in strextendf_with_separator()
[all …]