From c092af89a24d05b1d02858f3d84c38292e2347b5 Mon Sep 17 00:00:00 2001 From: Patrick Griffis Date: Sat, 1 Sep 2018 13:01:30 -0400 Subject: sysinfo: Fixup formatting --- plugins/sysinfo/unix/parse.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/sysinfo') diff --git a/plugins/sysinfo/unix/parse.c b/plugins/sysinfo/unix/parse.c index 748f75be..8e1e8bb7 100644 --- a/plugins/sysinfo/unix/parse.c +++ b/plugins/sysinfo/unix/parse.c @@ -271,12 +271,12 @@ int xs_parse_meminfo(unsigned long long *mem_tot, unsigned long long *mem_free, static void strip_quotes(char *string) { - size_t len = strlen(string); - if (string[len - 1] == '"') - string[--len] = '\0'; + size_t len = strlen(string); + if (string[len - 1] == '"') + string[--len] = '\0'; - if (string[0] == '"') - memmove(string, string + 1, len + 1); + if (string[0] == '"') + memmove(string, string + 1, len); } int xs_parse_distro(char *name) -- cgit 1.4.1