summary refs log tree commit diff stats
path: root/plugins/sysinfo/unix/parse.c
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2018-09-01 13:01:30 -0400
committerPatrick Griffis <tingping@tingping.se>2018-09-01 13:01:30 -0400
commitc092af89a24d05b1d02858f3d84c38292e2347b5 (patch)
tree63d8dd570032ba1cfee46676e99b72aa8ecb1129 /plugins/sysinfo/unix/parse.c
parent2a8ab8bb7fe19bc6ca30179c52d32bc1f9e8881d (diff)
sysinfo: Fixup formatting
Diffstat (limited to 'plugins/sysinfo/unix/parse.c')
-rw-r--r--plugins/sysinfo/unix/parse.c10
1 files changed, 5 insertions, 5 deletions
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)