| 867 | static char g_binary_path[1024] = {0}; |
| 868 | |
| 869 | static bool copy_path(char *out, size_t outsz, const char *path) { |
| 870 | if (!out || outsz == 0 || !path || !path[0]) { |
| 871 | return false; |
| 872 | } |
| 873 | int n = snprintf(out, outsz, "%s", path); |
| 874 | return n > 0 && (size_t)n < outsz; |
| 875 | } |
| 876 | |
| 877 | #ifndef _WIN32 |
| 878 | static bool is_executable_file(const char *path) { |
no outgoing calls
no test coverage detected