| 1484 | static char g_binary_path[1024] = {0}; |
| 1485 | |
| 1486 | static bool copy_path(char *out, size_t outsz, const char *path) { |
| 1487 | if (!out || outsz == 0 || !path || !path[0]) { |
| 1488 | return false; |
| 1489 | } |
| 1490 | int n = snprintf(out, outsz, "%s", path); |
| 1491 | return n > 0 && (size_t)n < outsz; |
| 1492 | } |
| 1493 | |
| 1494 | #ifndef _WIN32 |
| 1495 | static bool is_executable_file(const char *path) { |
no outgoing calls
no test coverage detected