This website requires JavaScript.
Explore
Help
Sign In
PenTest
/
nmap
Watch
1
Star
0
Fork
0
You've already forked nmap
mirror of
https://github.com/nmap/nmap.git
synced
2025-12-08 13:41:29 +00:00
Code
Issues
Projects
Releases
Wiki
Activity
Files
95fa8efd197c25f5d86de48a7ecd96b51e9e77dc
nmap
/
Target.cc
kris
0b50c16b38
Adding Snprintf() and Vsnprintf() to nbase/nbase_str.c. This is because of Windows' stupid implementation where it doesn't write a NULL byte at the end of the buffer if the result is truncated. I would've just #defined snprintf and vsnprintf to some wrapper function for Windows, but this doesn't work as libdnet and libpcap (and libpcap includes under mswin32) define snprintf to _snprintf and vsnprintf to _vsnprintf like we do, and through the many defines they end up being available in the Nmap sources. Vsnprintf() uses vsnprintf() (and writes a NULL byte at the end if truncated), and Snprintf uses Vsnprintf().
2007-08-14 06:46:54 +00:00
18 KiB
Raw
Blame
History
View Raw
Reference in New Issue
View Git Blame
Copy Permalink