Преглед изворни кода

Remove NULL-symbol at the end of script

Serj Kalichev пре 9 година
родитељ
комит
7dd3b735ed
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      plugins/clish/sym_script.c

+ 1 - 1
plugins/clish/sym_script.c

@@ -75,7 +75,7 @@ CLISH_PLUGIN_SYM(clish_script)
 		wpipe = fopen(fifo_name, "w");
 		if (!wpipe)
 			_exit(-1);
-		fwrite(script, strlen(script) + 1, 1, wpipe);
+		fwrite(script, strlen(script), 1, wpipe);
 		fclose(wpipe);
 		_exit(0);
 	}