little bug in Monitoring System Events with Endpoint Security sample code

file auth_demo.c in sample code as following:

static void handle_open_worker(es_client_t *x, const es_message_t *msg)

{

static const char *ro_prefix = "/usr/local/bin/";

 //ro_prefix_length will always equal 7,since sizeof(char*)=8
static const size_t ro_prefix_length = sizeof(ro_prefix) - 1;

...... }

Replies

little bug in Monitoring System Events with Endpoint Security sample code

Please file an official bug report about this, posting your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"