Browse Source

Remove NULL-symbol at the end of script

Serj Kalichev 9 years ago
parent
commit
5309a8585b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      clish/callback_script.c

+ 1 - 1
clish/callback_script.c

@@ -74,7 +74,7 @@ int clish_script_callback(clish_context_t *context,
 		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);
 	}