Re:Improvements to static analysis in GCC 14
by jandrese on Thursday April 04, 2024 @10:36AM
(#39930979)
Sometimes truncation is fine or at least can be managed. Yes, strdup() is a better choice in a lot of situations, but depending on how your data is structured it may not be the correct option. I would say my version is useful in any situation where you were previously using strncpy/cat or strlcpy/cat.
[ Parent
| on HN ]
There are no comments on this comment yet.