Home
last modified time | relevance | path

Searched refs:minCpLen (Results 1 - 1 of 1) sorted by relevance

/third_party/bounds_checking_function/src/
H A Dstrncpy_s.c111 size_t minCpLen; /* Use it to store the maxi length limit */ in strncpy_s() local
113 SECUREC_CALC_STR_LEN(strSrc, count, &minCpLen); /* No ending terminator */ in strncpy_s()
121 SECUREC_CALC_STR_LEN(strSrc, tmpCount, &minCpLen); /* No ending terminator */ in strncpy_s()
122 if (minCpLen == destMax) { in strncpy_s()
128 if (SECUREC_STRING_NO_OVERLAP(strDest, strSrc, minCpLen) || strDest == strSrc) { in strncpy_s()
130 SECUREC_MEMCPY_WARP_OPT(strDest, strSrc, minCpLen); /* Copy string without terminator */ in strncpy_s()
131 strDest[minCpLen] = '\0'; in strncpy_s()

Completed in 1 milliseconds