Samsung's created a new IoT OS, and it's a dumpster fire

Especially since there are valid reasons to use it. If you actually do know that the buffers are big enough (say, you’re putting the date at the start of everything, which always follows the form xx-xx-xxxx:) then there’s no reason to not use strcpy then a strncat/strlcat for the part that varies.

2 Likes