mirror of
git://git.suckless.org/dmenu
synced 2025-12-18 05:03:06 +01:00
we already need to know the string length since `cursor` needs to be adjusted. so just calculate the length beforehand and use `memcpy` to copy exactly as much as needed (as opposed to `strncpy` which always writes `n` bytes).
19 KiB
19 KiB