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

/system/netd/
H A DBandwidthController.h131 static int StrncpyAndCheck(char *buffer, const char *src, size_t buffSize);
H A DBandwidthController.cpp160 int BandwidthController::StrncpyAndCheck(char *buffer, const char *src, size_t buffSize) { argument
162 memset(buffer, '\0', buffSize); // strncpy() is not filling leftover with '\0'
163 strncpy(buffer, src, buffSize);
164 return buffer[buffSize - 1];

Completed in 62 milliseconds