From 7f9bac76b2ec2b388dfdbe8b0d166256c23c6fc6 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 3 Oct 2008 18:46:22 +0000 Subject: [PATCH] Make the buffer for formatting the SCAN.DS test value in an OS fingerprint a little bit bigger, so some seriously wrong distances aren't truncated. The buffer size used to be 8, which couldn't hold an observed network distance of -190: %DS=-19\0 01234567 I increased it to 10. --- osscan.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osscan.cc b/osscan.cc index fe72678c7..0070c9d25 100644 --- a/osscan.cc +++ b/osscan.cc @@ -462,7 +462,7 @@ static void WriteSInfo(char *ostr, int ostrlen, bool isGoodFP, int openTcpPort, int closedTcpPort, int closedUdpPort) { struct tm *ltime; time_t timep; - char dsbuf[8], otbuf[8], ctbuf[8], cubuf[8]; + char dsbuf[10], otbuf[8], ctbuf[8], cubuf[8]; char macbuf[16]; timep = time(NULL); ltime = localtime(&timep);