Nmap Development mailing list archives

Re: script udate broken


From: Gisle Vanem <giva () bgnett no>
Date: Thu, 28 Dec 2006 16:37:33 +0100

"Diman Todorov" <diman.todorov () chello at> wrote:
Thanks for the bug report. The attached patch fixes this problem.

+std::string get_filename(std::string str) {
+ int pos = max( (int) str.rfind('\\'), (int) str.rfind('/'));

Could ypu please use MAX() instead since max() isn't defined
in the C++ headers nmap uses on MingW.

--gv

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


Current thread: