Use printf `%.*s` with an appropriate length, instead of copying the appropriate number of bytes into a temporary, null terminating it, and relying on the terminator for printf. |
||
---|---|---|
.. | ||
2d | ||
3d | ||
arch | ||
editor | ||
main | ||
misc |
Use printf `%.*s` with an appropriate length, instead of copying the appropriate number of bytes into a temporary, null terminating it, and relying on the terminator for printf. |
||
---|---|---|
.. | ||
2d | ||
3d | ||
arch | ||
editor | ||
main | ||
misc |