Use sstrncpy instead of strncpy in sysevent plugin