# HG changeset patch # User gpoirier # Date 1151257078 0 # Node ID be4e5d19a5b3f7c2ac1a30fbe42b2bef5ffa7fd9 # Parent 51782def30a99195ea9609ea4129f86f978aa253 Typo: use ptmpstr instead of tmpstr to strip leading spaces + add comment Patch by Zuxy Meng ##zuxy P meng AH gmail P com## --Cette ligne, et les suivantes ci-dessous, seront ignores-- M cpudetect.c diff -r 51782def30a9 -r be4e5d19a5b3 cpudetect.c --- a/cpudetect.c Sun Jun 25 16:18:50 2006 +0000 +++ b/cpudetect.c Sun Jun 25 17:37:58 2006 +0000 @@ -147,9 +147,9 @@ if(cl_size) caps->cl_size = cl_size; ptmpstr=tmpstr=GetCpuFriendlyName(regs, regs2); - while(*ptmpstr == ' ') + while(*ptmpstr == ' ') // strip leading spaces ptmpstr++; - mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: %s ",tmpstr); + mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: %s ", ptmpstr); free(tmpstr); mp_msg(MSGT_CPUDETECT,MSGL_INFO,"(Family: %d, Model: %d, Stepping: %d)\n", caps->cpuType, caps->cpuModel, caps->cpuStepping);