memset(json_val, '\0', listen_buffer_size);
- sprintf(json_val, "%s%c", YAJL_GET_STRING(v), '\0');
+ snprintf(json_val, listen_buffer_size, "%s%c", YAJL_GET_STRING(v), '\0');
DEBUG("sysevent plugin: adding jsonval: %s", json_val);
memset(json_val, '\0', listen_buffer_size);
- sprintf(json_val, "%s%c", YAJL_GET_STRING(v), '\0');
+ snprintf(json_val, listen_buffer_size, "%s%c", YAJL_GET_STRING(v), '\0');
DEBUG("sysevent plugin: adding jsonval: %s", json_val);
memset(json_val, '\0', listen_buffer_size);
- sprintf(json_val, "%s%c", YAJL_GET_STRING(v), '\0');
+ snprintf(json_val, listen_buffer_size, "%s%c", YAJL_GET_STRING(v), '\0');
match_str = (char *)&json_val;
}