qemu-option.o(.text+0x20f8): In function `qemu_opts_from_qdict_1':
/src/qemu/qemu-option.c:813: warning: strcpy() is almost always misused, please use strlcpy()
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
value = buf;
break;
case QTYPE_QBOOL:
- strcpy(buf, qbool_get_int(qobject_to_qbool(obj)) ? "on" : "off");
+ pstrcpy(buf, sizeof(buf),
+ qbool_get_int(qobject_to_qbool(obj)) ? "on" : "off");
value = buf;
break;
default: