clover: camera: Fix snprintf string truncation error

* Now we truncate the string by ourselves, instead of letting snprintf
  to do so, which causes compilation error on U QPR3...

Change-Id: Ic09cd438ef5a94f4d99d18e932b4aafd990fc753
This commit is contained in:
Yumi Yukimura 2024-06-19 09:16:36 +08:00 committed by CakesTwix
parent a67ca0f8e4
commit c720bfe496

View file

@ -882,7 +882,7 @@ int32_t mm_stream_fsm_reg(mm_stream_t * my_obj,
pthread_mutex_lock(&my_obj->cmd_lock);
if (has_cb) {
snprintf(my_obj->cmd_thread.threadName, THREAD_NAME_SIZE, "CAM_StrmAppData");
snprintf(my_obj->cmd_thread.threadName, THREAD_NAME_SIZE, "CAM_StrmAppDat");
mm_camera_cmd_thread_launch(&my_obj->cmd_thread,
mm_stream_dispatch_app_data,
(void *)my_obj);