Searched refs:dst_size (Results 1 - 3 of 3) sorted by path

/frameworks/native/cmds/installd/tests/
H A Dinstalld_utils_test.cpp423 size_t dst_size = 10; local
424 char dst[dst_size];
428 EXPECT_EQ(0, append_and_increment(&dstp, src, &dst_size))
434 EXPECT_EQ(0, append_and_increment(&dstp, src, &dst_size))
442 size_t dst_size = 5; local
443 char dst[dst_size];
447 EXPECT_EQ(0, append_and_increment(&dstp, src, &dst_size))
453 EXPECT_EQ(-1, append_and_increment(&dstp, src, &dst_size))
/frameworks/native/cmds/installd/
H A Dutils.cpp885 size_t dst_size = path_len + 2; local
887 rec->path = (char*) malloc(dst_size);
894 if (append_and_increment(&dst, path, &dst_size) < 0
895 || append_and_increment(&dst, "/", &dst_size)) {
957 int append_and_increment(char** dst, const char* src, size_t* dst_size) { argument
958 ssize_t ret = strlcpy(*dst, src, *dst_size);
959 if (ret < 0 || (size_t) ret >= *dst_size) {
963 *dst_size -= ret;
H A Dutils.h139 int append_and_increment(char** dst, const char* src, size_t* dst_size);

Completed in 67 milliseconds