changeset 18816:be4e5d19a5b3

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
author gpoirier
date Sun, 25 Jun 2006 17:37:58 +0000
parents 51782def30a9
children a2b064a48775
files cpudetect.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);