strcpy() conversions _should_ be pretty mechanical. strncpy() has some common "safe" patterns that convert to strscpy() mechanically. strlcpy() needs manual checking to see if the call-site depends on the trailing NUL padding (but of them, it's the "safest", so lower priority).
-
-
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I recently switched a couple of projects I (co-)maintain over to use strlc{py,at}. I wonder whether strscpy makes more sense though. I would be in favor of getting the first 2 to be part of glibc. But I wonder what
@CarlosODonell and Florian Weimer would say if I sent a patch. :)Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.