fix whitespace trim in cpu_model_adjust

This commit is contained in:
Doug MacEachern 2007-04-05 18:46:04 +00:00
parent e91faa5dbc
commit f1899e093d
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,7 @@ void sigar_cpu_model_adjust(sigar_t *sigar, sigar_cpu_info_t *info)
len = strlen(model);
end = &model[len-1];
while (*ptr == ' ') ++ptr;
while (*end == ' ') *--end = '\0';
while (*end == ' ') *end-- = '\0';
/* remove vendor from model name */
len = strlen(info->vendor);