null-terminate string for vendor comparisions.

2003-09-04  Manish Singh  <yosh@gimp.org>

        * app/base/cpu-accel.c: null-terminate string for vendor comparisions.
This commit is contained in:
Manish Singh
2003-09-04 22:31:12 +00:00
committed by Manish Singh
parent e72c69ee28
commit 4088269581
3 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2003-09-04 Manish Singh <yosh@gimp.org>
* app/base/cpu-accel.c: null-terminate string for vendor comparisions.
2003-09-04 Manish Singh <yosh@gimp.org>
* app/base/cpu-accel.[ch]: rewrote the x86 tests, moved debug printout

View File

@ -124,6 +124,8 @@ arch_get_vendor (void)
*(int *)&id[4] = edx;
*(int *)&id[8] = ecx;
id[12] = '\0';
#ifdef ARCH_X86_64
if (strcmp (id, "AuthenticAMD") == 0)
return ARCH_X86_VENDOR_AMD;

View File

@ -124,6 +124,8 @@ arch_get_vendor (void)
*(int *)&id[4] = edx;
*(int *)&id[8] = ecx;
id[12] = '\0';
#ifdef ARCH_X86_64
if (strcmp (id, "AuthenticAMD") == 0)
return ARCH_X86_VENDOR_AMD;