esx: Fix nodeGetInfo so cpu model fits inside nodeinfo->model
Commit 6c0d0210 changed the behavior of virStr*cpy* functions, so now the nodeGetInfo call fails. Version 4.1.0 (default for Fedora 28) works: Model: Intel Core i7-4500U CPU @ 1.80G Current master tries to write "Intel Core i7-4500U CPU @ 1.80GHz", but the string is bigger than nodeinfo->model (which is a char[32]). So this patch "cuts" the string, and presents the same output from 4.1.0. Signed-off-by: NMarcos Paulo de Souza <marcos.souza.org@gmail.com>
Showing
想要评论请 注册 或 登录