diff --git a/src/RemoteSerializer.cc b/src/RemoteSerializer.cc index ebf7157a3a..b1e751d510 100644 --- a/src/RemoteSerializer.cc +++ b/src/RemoteSerializer.cc @@ -2724,7 +2724,7 @@ void RemoteSerializer::InternalCommError(const char* msg) #ifdef DEBUG_COMMUNICATION DumpDebugData(); #else - internal_error(msg); + internal_error("%s", msg); #endif } diff --git a/src/Sessions.cc b/src/Sessions.cc index b29192a471..1cbbbb272e 100644 --- a/src/Sessions.cc +++ b/src/Sessions.cc @@ -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,