| 883 | static char g_binary_path[1024] = {0}; |
| 884 | |
| 885 | static bool copy_path(char *out, size_t outsz, const char *path) { |
| 886 | if (!out || outsz == 0 || !path || !path[0]) { |
| 887 | return false; |
| 888 | } |
| 889 | int n = snprintf(out, outsz, "%s", path); |
| 890 | return n > 0 && (size_t)n < outsz; |
| 891 | } |
| 892 | |
| 893 | #ifndef _WIN32 |
| 894 | static bool is_executable_file(const char *path) { |
no outgoing calls
no test coverage detected