strcpy() -> strlcpy() (CID 7986).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40081 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -548,7 +548,7 @@ detect_cpu(int currentCPU)
|
|||||||
dprintf("CPU %d: vendor '%s' model name '%s'\n",
|
dprintf("CPU %d: vendor '%s' model name '%s'\n",
|
||||||
currentCPU, cpu->arch.vendor_name, cpu->arch.model_name);
|
currentCPU, cpu->arch.vendor_name, cpu->arch.model_name);
|
||||||
} else {
|
} else {
|
||||||
strcpy(cpu->arch.model_name, "unknown");
|
strlcpy(cpu->arch.model_name, "unknown", sizeof(cpu->arch.model_name));
|
||||||
}
|
}
|
||||||
|
|
||||||
// load feature bits
|
// load feature bits
|
||||||
|
|||||||
Reference in New Issue
Block a user