Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2733fe0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: replace strcat with strlcat"

parents 33d58d5c b22ac726
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -3606,9 +3606,9 @@ static bool stream_get_parameter_channels(struct str_parms *query,
            for (j = 0; j < ARRAY_SIZE(channels_name_to_enum_table); j++) {
                if (channels_name_to_enum_table[j].value == supported_channel_masks[i]) {
                    if (!first)
                        strcat(value, "|");
                        strlcat(value, "|", sizeof(value));

                    strcat(value, channels_name_to_enum_table[j].name);
                    strlcat(value, channels_name_to_enum_table[j].name, sizeof(value));
                    first = false;
                    break;
                }
@@ -3636,9 +3636,9 @@ static bool stream_get_parameter_formats(struct str_parms *query,
            for (j = 0; j < ARRAY_SIZE(formats_name_to_enum_table); j++) {
                if (formats_name_to_enum_table[j].value == supported_formats[i]) {
                    if (!first) {
                        strcat(value, "|");
                        strlcat(value, "|", sizeof(value));
                    }
                    strcat(value, formats_name_to_enum_table[j].name);
                    strlcat(value, formats_name_to_enum_table[j].name, sizeof(value));
                    first = false;
                    break;
                }