Nmap Development mailing list archives

[PATCH] Small fix in 2 log_write()s in keyWasPressed() in nmap_tty.cc


From: Kris Katterjohn <kjak () ispwest com>
Date: Tue, 22 Aug 2006 11:29:41 -0500

This just fixes two log_write()'s in keyWasPressed() by putting the
period before the newline.

It's a diff against 4.20ALPHA4

Thanks,
Kris Katterjohn
--- x/nmap_tty.cc       2006-03-08 15:45:01.000000000 -0600
+++ y/nmap_tty.cc       2006-08-22 11:23:39.000000000 -0500
@@ -251,10 +251,10 @@ bool keyWasPressed()
        log_write(LOG_STDOUT, "Debugging Decreased to %d.\n", o.debugging);
     } else if (c == 'p') {
        o.setPacketTrace(true);
-       log_write(LOG_STDOUT, "Packet Tracing enabled\n.");
+       log_write(LOG_STDOUT, "Packet Tracing enabled.\n");
     } else if (c == 'P') {
        o.setPacketTrace(false);
-       log_write(LOG_STDOUT, "Packet Tracing disabled\n.");
+       log_write(LOG_STDOUT, "Packet Tracing disabled.\n");
     } else if (c == '?') {
       log_write(LOG_STDOUT,
                "Interactive keyboard commands:\n"

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

Current thread: