SIR_MAXPATH 91 src/libsir/src/sirfilecache.c sf->path = strndup(path, strnlen(path, SIR_MAXPATH)); SIR_MAXPATH 119 src/libsir/src/sirfilecache.c sf->id = FNV32_1a((const uint8_t*)sf->path, strnlen(sf->path, SIR_MAXPATH)); SIR_MAXPATH 220 src/libsir/src/sirfilecache.c *newpath = (char*)calloc(SIR_MAXPATH, sizeof(char)); SIR_MAXPATH 229 src/libsir/src/sirfilecache.c (void)snprintf(*newpath, SIR_MAXPATH, SIR_FNAMEFORMAT, name, SIR_MAXPATH 327 src/libsir/src/sirfilecache.c char* tmp = strndup(sf->path, strnlen(sf->path, SIR_MAXPATH)); SIR_MAXPATH 334 src/libsir/src/sirfilecache.c SIR_ASSERT(namesize < SIR_MAXPATH); SIR_MAXPATH 344 src/libsir/src/sirfilecache.c *ext = strndup(sf->path + namesize, strnlen(sf->path + namesize, SIR_MAXPATH)); SIR_MAXPATH 347 src/libsir/src/sirfilecache.c *name = strndup(sf->path, strnlen(sf->path, SIR_MAXPATH)); SIR_MAXPATH 500 src/libsir/src/sirfilecache.c char resolved1[SIR_MAXPATH] = {0}; SIR_MAXPATH 501 src/libsir/src/sirfilecache.c char resolved2[SIR_MAXPATH] = {0}; SIR_MAXPATH 517 src/libsir/src/sirfilecache.c equal = 0 == strncmp(resolved1, resolved2, SIR_MAXPATH); SIR_MAXPATH 543 src/libsir/src/sirfilecache.c char resolved1[SIR_MAXPATH] = {0}, resolved2[SIR_MAXPATH] = {0}; SIR_MAXPATH 544 src/libsir/src/sirfilecache.c if (GetFullPathNameA(path, SIR_MAXPATH, resolved1, NULL) && SIR_MAXPATH 545 src/libsir/src/sirfilecache.c GetFullPathNameA(iter->path, SIR_MAXPATH, resolved2, NULL)) SIR_MAXPATH 95 src/libsir/src/sirfilesystem.c char abs_path[SIR_MAXPATH] = {0}; SIR_MAXPATH 96 src/libsir/src/sirfilesystem.c (void)snprintf(abs_path, SIR_MAXPATH, "%s/%s", base_path, path); SIR_MAXPATH 106 src/libsir/src/sirfilesystem.c char abs_path[SIR_MAXPATH] = {0}; SIR_MAXPATH 107 src/libsir/src/sirfilesystem.c (void)snprintf(abs_path, SIR_MAXPATH, "%s\\%s", base_path, path); SIR_MAXPATH 112 src/libsir/src/sirfilesystem.c char resolved_path[SIR_MAXPATH] = {0}; SIR_MAXPATH 113 src/libsir/src/sirfilesystem.c if (!GetFullPathNameA(abs_path, SIR_MAXPATH, resolved_path, NULL)) { SIR_MAXPATH 119 src/libsir/src/sirfilesystem.c (void)_sir_strlcpy(abs_path, resolved_path, SIR_MAXPATH); SIR_MAXPATH 161 src/libsir/src/sirfilesystem.c char abs_path[SIR_MAXPATH] = {0}; SIR_MAXPATH 162 src/libsir/src/sirfilesystem.c (void)snprintf(abs_path, SIR_MAXPATH, "%s/%s", base_path, path); SIR_MAXPATH 173 src/libsir/src/sirfilesystem.c static char cur_cwd[SIR_MAXPATH]; SIR_MAXPATH 187 src/libsir/src/sirfilesystem.c return strndup(cur_cwd, SIR_MAXPATH); SIR_MAXPATH 239 src/libsir/src/sirfilesystem.c size_t size = (st.st_size > 0) ? st.st_size + 2 : SIR_MAXPATH; SIR_MAXPATH 241 src/libsir/src/sirfilesystem.c size_t size = SIR_MAXPATH; SIR_MAXPATH 272 src/libsir/src/sirfilesystem.c if (size <= SIR_MAXPATH) { SIR_MAXPATH 273 src/libsir/src/sirfilesystem.c size = size + SIR_MAXPATH + 1L; SIR_MAXPATH 307 src/libsir/src/sirfilesystem.c find_path(B_APP_IMAGE_SYMBOL, B_FIND_PATH_IMAGE_PATH, NULL, buffer, SIR_MAXPATH); SIR_MAXPATH 366 src/libsir/src/sirfilesystem.c char* bname = strndup(retval, strnlen(retval, SIR_MAXPATH)); SIR_MAXPATH 380 src/libsir/src/sirfilesystem.c char* dname = strndup(retval, strnlen(retval, SIR_MAXPATH)); SIR_MAXPATH 445 src/libsir/src/sirfilesystem.c # define SIR_MAXSLPATH (SIR_MAXPATH + 16) SIR_MAXPATH 448 src/libsir/src/sirfilesystem.c char cwd[SIR_MAXPATH], cwdl[SIR_MAXPATH]; SIR_MAXPATH 449 src/libsir/src/sirfilesystem.c char symlink[SIR_MAXSLPATH], temp_buffer[SIR_MAXPATH]; SIR_MAXPATH 479 src/libsir/src/sirfilesystem.c (void)snprintf(symlink, SIR_MAXPATH, "%s", argv[0]); SIR_MAXPATH 481 src/libsir/src/sirfilesystem.c res = _sir_readlink(symlink, temp_buffer, SIR_MAXPATH); SIR_MAXPATH 483 src/libsir/src/sirfilesystem.c (void)_sir_strncpy(buffer, SIR_MAXPATH, symlink, SIR_MAXPATH); SIR_MAXPATH 488 src/libsir/src/sirfilesystem.c *size = strnlen(buffer, SIR_MAXPATH); SIR_MAXPATH 495 src/libsir/src/sirfilesystem.c (void)snprintf(cwd, SIR_MAXPATH, "/proc/%llu/cwd", (unsigned long long)_sir_getpid()); SIR_MAXPATH 500 src/libsir/src/sirfilesystem.c (void)snprintf(symlink, SIR_MAXPATH, "%s%s", cwdl, relative + 1); SIR_MAXPATH 502 src/libsir/src/sirfilesystem.c res = _sir_readlink(symlink, temp_buffer, SIR_MAXPATH); SIR_MAXPATH 504 src/libsir/src/sirfilesystem.c (void)_sir_strncpy(buffer, SIR_MAXPATH, symlink, SIR_MAXPATH); SIR_MAXPATH 508 src/libsir/src/sirfilesystem.c *size = strnlen(buffer, SIR_MAXPATH); SIR_MAXPATH 511 src/libsir/src/sirfilesystem.c (void)snprintf(cwd, SIR_MAXPATH, "/proc/%llu/cwd", (unsigned long long)_sir_getpid()); SIR_MAXPATH 517 src/libsir/src/sirfilesystem.c (void)snprintf(symlink, SIR_MAXPATH, "%s%s", cwdl, argv[0]); SIR_MAXPATH 519 src/libsir/src/sirfilesystem.c res = _sir_readlink(symlink, temp_buffer, SIR_MAXPATH); SIR_MAXPATH 521 src/libsir/src/sirfilesystem.c (void)_sir_strncpy(buffer, SIR_MAXPATH, symlink, SIR_MAXPATH); SIR_MAXPATH 525 src/libsir/src/sirfilesystem.c *size = strnlen(buffer, SIR_MAXPATH); SIR_MAXPATH 533 src/libsir/src/sirfilesystem.c if (sizeof(clonedpath) <= strnlen(path, SIR_MAXPATH)) SIR_MAXPATH 536 src/libsir/src/sirfilesystem.c (void)_sir_strncpy(clonedpath, SIR_MAXPATH, path, SIR_MAXPATH); SIR_MAXPATH 540 src/libsir/src/sirfilesystem.c (void)snprintf(cwd, SIR_MAXPATH, "/proc/%llu/cwd", (unsigned long long)_sir_getpid()); SIR_MAXPATH 557 src/libsir/src/sirfilesystem.c res = _sir_readlink(symlink, temp_buffer, SIR_MAXPATH); SIR_MAXPATH 559 src/libsir/src/sirfilesystem.c (void)_sir_strncpy(buffer, SIR_MAXPATH, symlink, SIR_MAXPATH); SIR_MAXPATH 563 src/libsir/src/sirfilesystem.c *size = strnlen(buffer, SIR_MAXPATH); SIR_MAXPATH 567 src/libsir/src/sirfilesystem.c (void)snprintf(symlink, SIR_MAXPATH, "%s/%s", token, ps.pr_fname); SIR_MAXPATH 569 src/libsir/src/sirfilesystem.c res = _sir_readlink(symlink, temp_buffer, SIR_MAXPATH); SIR_MAXPATH 571 src/libsir/src/sirfilesystem.c (void)_sir_strncpy(buffer, SIR_MAXPATH, symlink, SIR_MAXPATH); SIR_MAXPATH 575 src/libsir/src/sirfilesystem.c *size = strnlen(buffer, SIR_MAXPATH); SIR_MAXPATH 596 src/libsir/src/sirfilesystem.c char tmp[SIR_MAXPATH + 2] = {0}; SIR_MAXPATH 602 src/libsir/src/sirfilesystem.c char tmp2[SIR_MAXPATH] = {0}; SIR_MAXPATH 637 src/libsir/src/sirfilesystem.c char buffer2[SIR_MAXPATH]; SIR_MAXPATH 669 src/libsir/src/sirfilesystem.c length = (int)strnlen(resolved, SIR_MAXPATH); SIR_MAXPATH 690 src/libsir/src/sirfilesystem.c size_t pathlen = strnlen(path, SIR_MAXPATH); SIR_MAXPATH 692 src/libsir/src/sirfilesystem.c char tmp[SIR_MAXPATH] = {0}; SIR_MAXPATH 693 src/libsir/src/sirfilesystem.c char tmp2[SIR_MAXPATH] = {0}; SIR_MAXPATH 698 src/libsir/src/sirfilesystem.c const char* end = separator ? separator : cursor + strnlen(cursor, SIR_MAXPATH); SIR_MAXPATH 716 src/libsir/src/sirfilesystem.c length = (int)strnlen(tmp2, SIR_MAXPATH); SIR_MAXPATH 67 src/libsir/src/sirplugins.c plugin->path = strndup(path, strnlen(path, SIR_MAXPATH));