On 17/5/23 20:48, Kihaguru Gathura wrote:
The following message occurs when linking C files in OpenBSD 7.3 AMD64
Platform.
<----- fe-exec.c(fe-exec.o:(PQmakeEmptyPGresult) in archive
/usr/local/lib/libpq.a): warning: strcpy() is almost always misused, please
use strlcpy() ----->
Pretty straight and to the point I'd have thought, don't use `strcpy`:
there are better (safer) alternatives.
BTW: a subject line is a _very_ good idea. I nearly thought your email
was spam.
--
Stuart Longland (aka Redhatter, VK4MSL)
I haven't lost my mind...
...it's backed up on a tape somewhere.