On Tue, Oct 22, 2024 at 08:34:02AM +0200, Thomas Huth wrote: > The linker on OpenBSD complains: > > ld: warning: dirtyrate.c:447 (../src/migration/dirtyrate.c:447)(...): > warning: strcpy() is almost always misused, please use strlcpy() > > It's currently not a real problem in this case since both arrays > have the same size (256 bytes). But just in case somebody changes > the size of the source array in the future, let's better play safe > and use g_strlcpy() here instead, with an additional check that the > string has been copied as a whole. > > Signed-off-by: Thomas Huth <th...@redhat.com> > --- > v2: Check the return value of g_strlcpy to avoid truncation of the string
queued, thanks. -- Peter Xu