Commit 40882695 authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

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.
parent e72c69ee
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment