if (ret < 0) {
PERROR("snprintf file url");
goto parse_error;
+ } else if (ret >= sizeof(url)) {
+ PERROR("snprintf file url is too long");
+ goto parse_error;
+
}
ctrl_url = url;
}
if (ctrl_uris[0].dtype == LTTNG_DST_PATH &&
(data_url && *data_url != '\0')) {
- ERR("Can not have a data URL when destination is file://");
+ ERR("Cannot have a data URL when destination is file://");
goto error;
}