Revision: 13548
          http://edk2.svn.sourceforge.net/edk2/?rev=13548&view=rev
Author:   jcarsey
Date:     2012-07-23 16:32:09 +0000 (Mon, 23 Jul 2012)
Log Message:
-----------
ShellPkg: Update string to number conversion to correctly stop at spaces if so 
requested.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: jaben carsey <[email protected]>
Reviewed-by: Eric Dong <[email protected]>

Modified Paths:
--------------
    trunk/edk2/ShellPkg/Library/UefiShellLib/UefiShellLib.c

Modified: trunk/edk2/ShellPkg/Library/UefiShellLib/UefiShellLib.c
===================================================================
--- trunk/edk2/ShellPkg/Library/UefiShellLib/UefiShellLib.c     2012-07-23 
03:17:09 UTC (rev 13547)
+++ trunk/edk2/ShellPkg/Library/UefiShellLib/UefiShellLib.c     2012-07-23 
16:32:09 UTC (rev 13548)
@@ -3650,10 +3650,10 @@
   Result = 0;
 
   //
-  // Skip spaces if requested
+  // stop at spaces if requested
   //
-  while (StopAtSpace && *String == L' ') {
-    String++;
+  if (StopAtSpace && *String == L' ') {
+    break;
   }
 
   while (ShellIsHexaDecimalDigitCharacter (*String)) {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to