st-hal: Fix incorrect pointer assignment

To fix the issue, use memcpy instead of pointer assignment.

Change-Id: Idadcbef33c395506619e4890c9278892368a8164
diff --git a/sound_trigger_hw.c b/sound_trigger_hw.c
index 60bb32a..b1eef96 100644
--- a/sound_trigger_hw.c
+++ b/sound_trigger_hw.c
@@ -1310,7 +1310,7 @@
     }
 
     get_base_properties(stdev);
-    properties = (struct sound_trigger_properties *)&hw_properties_extended.base;
+    memcpy(properties, &hw_properties_extended.base, sizeof(struct sound_trigger_properties));
     hw_properties_extended.header.version = SOUND_TRIGGER_DEVICE_API_VERSION_1_0;
     return 0;
 }