Simplify string ops with already compiled-in functions

This commit is contained in:
CTCaer committed 2019-12-04 15:56:53 +02:00
1 parent 74452074f6
commit 29a51124fd
14 files changed
+54 -63

No files matched your search

+3 -3
View File
@@ -278,13 +278,13 @@ static lv_res_t _create_window_fuses_info_status(lv_obj_t *btn)
s_printf(dram_man, "Samsung %s", (!dram_id) ? "4GB" : "6GB");
break;
case 1:
memcpy(dram_man, "Hynix 4GB", 10);
strcpy(dram_man, "Hynix 4GB");
break;
case 2:
memcpy(dram_man, "Micron 4GB", 11);
strcpy(dram_man, "Micron 4GB");
break;
default:
memcpy(dram_man, "Unknown", 8);
strcpy(dram_man, "Unknown");
break;
}