about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tools/my_cpuid.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/tools/my_cpuid.c b/src/tools/my_cpuid.c
index b4bcbcbb..28105808 100644
--- a/src/tools/my_cpuid.c
+++ b/src/tools/my_cpuid.c
@@ -170,10 +170,12 @@ void my_cpuid(x64emu_t* emu, uint32_t tmp32u)
     if(ncpu>255) ncpu = 255;
     if(!ncpu) ncpu = 1;
     static char branding[3*4*4+1] = "";
-    strcpy(branding, getBoxCpuName());
-    while(strlen(branding)<3*4*4) {
-        memmove(branding+1, branding, strlen(branding));
-        branding[0] = ' ';
+    if(!branding[0]) {
+        strcpy(branding, getBoxCpuName());
+        while(strlen(branding)<3*4*4) {
+            memmove(branding+1, branding, strlen(branding)+1);
+            branding[0] = ' ';
+        }
     }
     switch(tmp32u) {
         case 0x0: