diff --git a/platform/broadcom/sonic-platform-modules-accton/as9736-64d/modules/accton_as9736_64d_psu.c b/platform/broadcom/sonic-platform-modules-accton/as9736-64d/modules/accton_as9736_64d_psu.c index fec334f4a54f..3d7a9ea298c2 100755 --- a/platform/broadcom/sonic-platform-modules-accton/as9736-64d/modules/accton_as9736_64d_psu.c +++ b/platform/broadcom/sonic-platform-modules-accton/as9736-64d/modules/accton_as9736_64d_psu.c @@ -278,9 +278,12 @@ static struct as9736_64d_psu_data *as9736_64d_psu_update_device(struct device *d /* Read model name */ #ifdef __STDC_LIB_EXT1__ memset_s(data->model_name, sizeof(data->model_name), 0, sizeof(data->model_name)); - memset_s(data->serial_number, sizeof(data->model_name), 0, sizeof(data->serial_number)); #else memset(data->model_name, 0, sizeof(data->model_name)); +#endif +#ifdef __STDC_LIB_EXT1__ + memset_s(data->serial_number, sizeof(data->model_name), 0, sizeof(data->serial_number)); +#else memset(data->serial_number, 0, sizeof(data->serial_number)); #endif power_good = (data->status_pwr_good >> (1-data->index) & 0x1);