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:

committed by
Manish Singh

parent
e72c69ee28
commit
4088269581
@ -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
|
||||
|
@ -123,6 +123,8 @@ arch_get_vendor (void)
|
||||
*(int *)&id[0] = ebx;
|
||||
*(int *)&id[4] = edx;
|
||||
*(int *)&id[8] = ecx;
|
||||
|
||||
id[12] = '\0';
|
||||
|
||||
#ifdef ARCH_X86_64
|
||||
if (strcmp (id, "AuthenticAMD") == 0)
|
||||
|
@ -123,6 +123,8 @@ arch_get_vendor (void)
|
||||
*(int *)&id[0] = ebx;
|
||||
*(int *)&id[4] = edx;
|
||||
*(int *)&id[8] = ecx;
|
||||
|
||||
id[12] = '\0';
|
||||
|
||||
#ifdef ARCH_X86_64
|
||||
if (strcmp (id, "AuthenticAMD") == 0)
|
||||
|
Reference in New Issue
Block a user