2 ms·
This still appends null bytes to fill the whole buffer, which is almost never what you want. Use snprintf() or strncat(), as suggested by the article.
by jwilk 10y ago
This still appends null bytes to fill the whole buffer, which is almost never what you want.
Use snprintf() or strncat(), as suggested by the article.
- defined 10y agoThat's not unsafe, which is what the article is about.