/in/foo.cc: In function 'int main()':
/in/foo.cc:84:33: warning: '%05lld' directive output may be truncated writing between 5 and 18 bytes into a region of size 16 [-Wformat-truncation=]
84 | snprintf(buf, sizeof(buf), "%05lld", digits);
| ^~~~~~
/in/foo.cc:84:32: note: directive argument in the range [1, 922337203685477580]
84 | snprintf(buf, sizeof(buf), "%05lld", digits);
| ^~~~~~~~
/in/foo.cc:84:13: note: 'snprintf' output between 6 and 19 bytes into a destination of size 16
84 | snprintf(buf, sizeof(buf), "%05lld", digits);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~