Parcourir la source

fixed run_command()

Aaron Marcher il y a 9 ans
Parent
commit
887b9bd3e3
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      slstatus.c

+ 1 - 1
slstatus.c

@@ -407,7 +407,7 @@ static char *
 run_command(const char* command)
 {
 	FILE *fp = popen(command, "r");
-	char buffer[64] = '\0';
+	char buffer[64] = "\0";
 
 	if (fp == NULL) {
 		warn("Could not get command output for: %s", command);