X-Git-Url: https://git.saurik.com/apple/cf.git/blobdiff_plain/9ce05555af2dcac1e76f1ec762a0939dbd1d3d69..60beada3660f2dead8267dfa8a04bdff1a24febc:/String.subproj/CFStringScanner.c diff --git a/String.subproj/CFStringScanner.c b/String.subproj/CFStringScanner.c index 6baafe7..601e65c 100644 --- a/String.subproj/CFStringScanner.c +++ b/String.subproj/CFStringScanner.c @@ -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@ * - * 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 @@ -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 - result = strtod(charPtr, &endCharPtr); + + result = strtod_l(charPtr, &endCharPtr, NULL); + if (tmpAlloc) CFAllocatorDeallocate(tmpAlloc, charPtr); if (charPtr == endCharPtr) return false; *indexPtr += (endCharPtr - charPtr);