aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/llprocessor.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llcommon/llprocessor.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/linden/indra/llcommon/llprocessor.cpp b/linden/indra/llcommon/llprocessor.cpp
index b811678..3408cb1 100644
--- a/linden/indra/llcommon/llprocessor.cpp
+++ b/linden/indra/llcommon/llprocessor.cpp
@@ -604,7 +604,7 @@ bool CProcessor::AnalyzeIntelProcessor()
604 mov sig3, edx 604 mov sig3, edx
605 } 605 }
606 // Then we convert the data to a readable string 606 // Then we convert the data to a readable string
607 snprintf( 607 snprintf( /* Flawfinder: ignore */
608 CPUInfo.strProcessorSerial, 608 CPUInfo.strProcessorSerial,
609 sizeof(CPUInfo.strProcessorSerial), 609 sizeof(CPUInfo.strProcessorSerial),
610 "%04lX-%04lX-%04lX-%04lX-%04lX-%04lX", 610 "%04lX-%04lX-%04lX-%04lX-%04lX-%04lX",
@@ -612,15 +612,15 @@ bool CProcessor::AnalyzeIntelProcessor()
612 sig1 & 0xFFFF, 612 sig1 & 0xFFFF,
613 sig3 >> 16, 613 sig3 >> 16,
614 sig3 & 0xFFFF, 614 sig3 & 0xFFFF,
615 sig2 >> 16, sig2 & 0xFFFF); /* Flawfinder: ignore */ 615 sig2 >> 16, sig2 & 0xFFFF);
616 } 616 }
617 else 617 else
618 { 618 {
619 // If there's no serial number support we just put "No serial number" 619 // If there's no serial number support we just put "No serial number"
620 snprintf( 620 snprintf( /* Flawfinder: ignore */
621 CPUInfo.strProcessorSerial, 621 CPUInfo.strProcessorSerial,
622 sizeof(CPUInfo.strProcessorSerial), 622 sizeof(CPUInfo.strProcessorSerial),
623 "No Processor Serial Number"); /* Flawfinder: ignore */ 623 "No Processor Serial Number");
624 } 624 }
625 625
626 // Now we get the standard processor extensions 626 // Now we get the standard processor extensions
@@ -854,7 +854,7 @@ bool CProcessor::AnalyzeAMDProcessor()
854 break; 854 break;
855 case 0xD: // Model = 0xD: K6-2+ / K6-III+ 855 case 0xD: // Model = 0xD: K6-2+ / K6-III+
856 strcpy(CPUInfo.strModel, "AMD K6-2+ or K6-III+ (0.18 micron)"); /* Flawfinder: ignore */ 856 strcpy(CPUInfo.strModel, "AMD K6-2+ or K6-III+ (0.18 micron)"); /* Flawfinder: ignore */
857 strncat(strCPUName, "AMD K6-2+ or K6-III+ (0.18 micron)", sizeof(strCPUName) - strlen(strCPUName) -1); 857 strncat(strCPUName, "AMD K6-2+ or K6-III+ (0.18 micron)", sizeof(strCPUName) - strlen(strCPUName) -1); /* Flawfinder: ignore */
858 break; 858 break;
859 default: // ... 859 default: // ...
860 strcpy(CPUInfo.strModel, "Unknown AMD K5 or K6 model"); /* Flawfinder: ignore */ 860 strcpy(CPUInfo.strModel, "Unknown AMD K5 or K6 model"); /* Flawfinder: ignore */