fixing strlen. Different strlens across different versions of qemu?????????????????