hal: audio_extn: add proper check to append null terminator

To append null terminator, add proper check and use correct
string length address.

Change-Id: I1716182a16d85f78de60b3435a2b54e9e05339cd
1 file changed