Selaa lähdekoodia

fixed run_command()

Aaron Marcher 9 vuotta sitten
vanhempi
commit
887b9bd3e3
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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);