bro and FreeBSD 5.0

Vern Paxson vern at icir.org
Sun Feb 9 09:46:52 PST 2003


> Can you try the attached patch? There seems to be some incompatibility
> from gcc <3.0 to >= 3.0.

Umesh Shankar devised a cleaner fix, which I've appended.

I'll get out a new "CURRENT" release within the coming week.

		Vern


--- DebugCmds.cc.ORIG	2003/01/22 09:08:15	1.14
+++ DebugCmds.cc	2003/01/23 21:09:40
@@ -161,7 +161,7 @@
 		for ( int j = 0; j < g_DebugCmdInfos[i]->NumNames(); ++j )
 			{
 			const char* curr_name = g_DebugCmdInfos[i]->Names()[j];
-			if ( prefix.compare(0, arglen, curr_name) )
+			if ( strncmp(curr_name, prefix.c_str(), arglen) )
 				continue;
 
 			// If exact match, then only return that one.



More information about the Bro mailing list