]> git.saurik.com Git - apple/cf.git/blobdiff - String.subproj/CFStringScanner.c
CF-368.26.tar.gz
[apple/cf.git] / String.subproj / CFStringScanner.c
index 6baafe7db8279e0ebdb75fb8b4e2af785d4807d9..601e65c3d2133d92f2ad14418470ad34bbcd7ebc 100644 (file)
@@ -1,10 +1,8 @@
 /*
 /*
- * Copyright (c) 2003 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2005 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
- * Copyright (c) 1999-2003 Apple Computer, Inc.  All Rights Reserved.
- * 
  * This file contains Original Code and/or Modifications of Original Code
  * as defined in and that are subject to the Apple Public Source License
  * Version 2.0 (the 'License'). You may not use this file except in
  * This file contains Original Code and/or Modifications of Original Code
  * as defined in and that are subject to the Apple Public Source License
  * Version 2.0 (the 'License'). You may not use this file except in
@@ -258,7 +256,9 @@ __private_extern__ Boolean __CFStringScanDouble(CFStringInlineBuffer *buf, CFDic
        ch = __CFStringGetCharacterFromInlineBufferAux(buf, *indexPtr + numChars);
     } while (true);
     charPtr[numChars] = 0;     // Null byte for strtod
        ch = __CFStringGetCharacterFromInlineBufferAux(buf, *indexPtr + numChars);
     } while (true);
     charPtr[numChars] = 0;     // Null byte for strtod
-    result = strtod(charPtr, &endCharPtr);
+
+    result = strtod_l(charPtr, &endCharPtr, NULL);
+
     if (tmpAlloc) CFAllocatorDeallocate(tmpAlloc, charPtr);
     if (charPtr == endCharPtr) return false;
     *indexPtr += (endCharPtr - charPtr);
     if (tmpAlloc) CFAllocatorDeallocate(tmpAlloc, charPtr);
     if (charPtr == endCharPtr) return false;
     *indexPtr += (endCharPtr - charPtr);