On 2023-05-17, Stuart Longland <stua...@longlandclan.id.au> wrote: > 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.
This is coming from the postgresql library's use of strcpy so you can't avoid it while using that library.