From f1899e093df164f6899f4cfb2a43f6b8553f49ec Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 5 Apr 2007 18:46:04 +0000 Subject: [PATCH] fix whitespace trim in cpu_model_adjust --- src/sigar_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sigar_util.c b/src/sigar_util.c index 678c4299..c1d1a0d0 100644 --- a/src/sigar_util.c +++ b/src/sigar_util.c @@ -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);