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

I’ll respond over on your duplicate thread.

Share and Enjoy

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