X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_module%2Fiface-pstate-ctrl.c;fp=linux_module%2Fiface-pstate-ctrl.c;h=9b3e4bb54467c0c54dc332aaa81d7afcf5b217ff;hb=d22c11cec4e8c3390bfe6bf16ed07f5d073f0d4a;hp=2864ea05cc82ae174d1420853088d5bec07c9e87;hpb=f240f8a3c11478abe180bd906c746c68eb8c3a3c;p=palacios.git diff --git a/linux_module/iface-pstate-ctrl.c b/linux_module/iface-pstate-ctrl.c index 2864ea0..9b3e4bb 100644 --- a/linux_module/iface-pstate-ctrl.c +++ b/linux_module/iface-pstate-ctrl.c @@ -876,6 +876,7 @@ static int get_current_governor(char **buf, unsigned int cpu) } strncpy(govname, policy->governor->name, MAX_GOV_NAME_LEN); + govname[MAX_GOV_NAME_LEN-1] = 0; get_cpu_var(core_state).linux_governor = govname; put_cpu_var(core_state);