Searched refs:dst_size (Results 1 - 3 of 3) sorted by relevance
/frameworks/native/cmds/installd/tests/ |
H A D | installd_utils_test.cpp | 424 size_t dst_size = 10; local 425 char dst[dst_size]; 429 EXPECT_EQ(0, append_and_increment(&dstp, src, &dst_size)) 435 EXPECT_EQ(0, append_and_increment(&dstp, src, &dst_size)) 443 size_t dst_size = 5; local 444 char dst[dst_size]; 448 EXPECT_EQ(0, append_and_increment(&dstp, src, &dst_size)) 454 EXPECT_EQ(-1, append_and_increment(&dstp, src, &dst_size))
|
/frameworks/native/cmds/installd/ |
H A D | utils.cpp | 849 size_t dst_size = path_len + 2; local 851 rec->path = (char*) malloc(dst_size); 858 if (append_and_increment(&dst, path, &dst_size) < 0 859 || append_and_increment(&dst, "/", &dst_size)) { 921 int append_and_increment(char** dst, const char* src, size_t* dst_size) { argument 922 ssize_t ret = strlcpy(*dst, src, *dst_size); 923 if (ret < 0 || (size_t) ret >= *dst_size) { 927 *dst_size -= ret;
|
H A D | utils.h | 137 int append_and_increment(char** dst, const char* src, size_t* dst_size);
|
Completed in 74 milliseconds