mirror of
https://github.com/nmap/nmap.git
synced 2025-12-14 19:59:02 +00:00
Applied patch:
o Fixed a log_write call and a pfatal call to use a syntax which is safer from format strings bugs. This allows Nmap to build with the gcc -Wformat -Werror=format-security options. [Guillaume Rousse]
This commit is contained in:
@@ -566,7 +566,7 @@ void printportoutput(Target *currenths, PortList *plist) {
|
||||
currenths->NameIP(hostname, sizeof(hostname)),
|
||||
(numignoredports == 1)? "is" : "are");
|
||||
if (plist->numIgnoredStates() == 1) {
|
||||
log_write(LOG_PLAIN, statenum2str(plist->nextIgnoredState(PORT_UNKNOWN)));
|
||||
log_write(LOG_PLAIN, "%s", statenum2str(plist->nextIgnoredState(PORT_UNKNOWN)));
|
||||
} else {
|
||||
prevstate = PORT_UNKNOWN;
|
||||
while ((istate = plist->nextIgnoredState(prevstate)) != PORT_UNKNOWN) {
|
||||
|
||||
Reference in New Issue
Block a user