Whether snprintf wrote the whole string into a buffer of `cap` bytes. */
| 106 | |
| 107 | /* Whether snprintf wrote the whole string into a buffer of `cap` bytes. */ |
| 108 | static bool ha_fits(int written, size_t cap) { |
| 109 | return written > 0 && (size_t)written < cap; |
| 110 | } |
| 111 | |
| 112 | static void ha_open_crumb_log(int deadline_ms) { |
| 113 | const char *override = getenv("CBM_HOOK_TIMEOUT_LOG"); /* tests + power users */ |