Two more small compile time error fixes.

This commit is contained in:
Seth Hall 2011-01-24 13:43:49 -05:00
parent be5027c316
commit 6418283371
2 changed files with 3 additions and 2 deletions

View file

@ -1354,7 +1354,7 @@ void NetSessions::Internal(const char* msg, const struct pcap_pkthdr* hdr,
const u_char* pkt)
{
DumpPacket(hdr, pkt);
internal_error(msg);
internal_error("%s", msg);
}
void NetSessions::Weird(const char* name,

View file

@ -8,6 +8,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <string.h>
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif
@ -421,7 +422,7 @@ int main(int argc, char** argv)
prog = argv[0];
prefixes.append(""); // "" = "no prefix"
prefixes.append(strdup("")); // "" = "no prefix"
char* p = getenv("BRO_PREFIXES");
if ( p )