mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Fixed problem with PRI macros.
Thanks Gregor!
This commit is contained in:
parent
275c6e64cc
commit
b54445b725
3 changed files with 7 additions and 4 deletions
|
@ -159,7 +159,6 @@
|
|||
#include <signal.h>
|
||||
#include <strings.h>
|
||||
#include <stdarg.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#include "config.h"
|
||||
#ifdef TIME_WITH_SYS_TIME
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include "SMB.h"
|
||||
#include "smb_pac.h"
|
||||
#include "Val.h"
|
||||
#include "inttypes.h"
|
||||
|
||||
namespace {
|
||||
const bool DEBUG_smb_ipc = true;
|
||||
|
@ -167,8 +166,7 @@ void SMB_Session::Deliver(int is_orig, int len, const u_char* data)
|
|||
const u_char* tmp = data_start + next;
|
||||
if ( data_start + next < data + body.length() )
|
||||
{
|
||||
//Weird(fmt("ANDX buffer overlapping: next = %d, buffer_end = %" PRId32, next, data + body.length() - data_start));
|
||||
printf("ANDX buffer overlapping: next = %" PRId64 ", buffer_end = %" PRId32 " ", next, data + body.length() - data_start);
|
||||
Weird(fmt("ANDX buffer overlapping: next = %d, buffer_end = %" PRIdPTR, next, data + body.length() - data_start));
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -11,6 +11,12 @@
|
|||
#include <stdarg.h>
|
||||
#include "config.h"
|
||||
|
||||
#define _ISOC99_SOURCE
|
||||
#define __STDC_LIMIT_MACROS
|
||||
#define __STDC_CONSTANT_MACROS
|
||||
#define __STDC_FORMAT_MACROS
|
||||
#include "inttypes.h"
|
||||
|
||||
#if __STDC__
|
||||
#define myattribute __attribute__
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue