Skip to content

Commit b82d8e0

Browse files
committed
bound component name scan width in logger filter parser
1 parent 0f9fa75 commit b82d8e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/logger/filter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static char *filter_parse_component_name(char *input_str, struct filter_element
104104
*/
105105
if (strlen(scan_format_string) == 0) {
106106
ret = snprintf(scan_format_string, sizeof(scan_format_string),
107-
"%%%d[^0-9* ]s", UUID_NAME_MAX_LEN);
107+
"%%%d[^0-9* ]s", UUID_NAME_MAX_LEN - 1);
108108
if (ret <= 0)
109109
return NULL;
110110
}

0 commit comments

Comments
 (0)