diff options
| author | Thomas Huth <thuth@redhat.com> | 2024-10-22 08:34:02 +0200 |
|---|---|---|
| committer | Peter Xu <peterx@redhat.com> | 2024-10-31 15:48:18 -0400 |
| commit | 88c3b57f48db781c9fd0b117622f331d0f6fec92 (patch) | |
| tree | 000ab34d601df6589d794cc781625149d0e724de /scripts/meson-buildoptions.py | |
| parent | bfd66ccb8d5e34023ba841f6c751d06f482d91ae (diff) | |
| download | focaccia-qemu-88c3b57f48db781c9fd0b117622f331d0f6fec92.tar.gz focaccia-qemu-88c3b57f48db781c9fd0b117622f331d0f6fec92.zip | |
migration/dirtyrate: Silence warning about strcpy() on OpenBSD
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 <thuth@redhat.com> Reviewed-by: Hyman Huang <yong.huang@smartx.com> Link: https://lore.kernel.org/r/20241022063402.184213-1-thuth@redhat.com [peterx: Fix over-80 chars] Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'scripts/meson-buildoptions.py')
0 files changed, 0 insertions, 0 deletions