hal: replace strcat with strlcat

Replace all occurrences of strcat with the safer version strlcat
to fix KW issues reported due to usage of banned functions.

CRs-Fixed: 2123221
Change-Id: I2e598c112d4ff79b3a4e82717549c1b051a80a41
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 4ca649b..b24973b 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -3601,9 +3601,9 @@
             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;
                 }
@@ -3631,9 +3631,9 @@
             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;
                 }