1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-06 13:36:36 +00:00

Remove the stripping of newlines from the beginning of script output.

This commit is contained in:
david
2010-09-30 05:03:03 +00:00
parent 9d57567b62
commit fe55182068

View File

@@ -427,10 +427,6 @@ static char *formatScriptOutput(ScriptResult sr) {
c_output = sr.get_output().c_str();
p = c_output;
/* Skip initial newlines. */
while (*p == '\n')
p++;
while (*p != '\0') {
q = strchr(p, '\n');
if (q == NULL) {