Commit 8e687ad5 authored by sfalken@apple.com's avatar sfalken@apple.com

Fix a math error in my last change.

        
        Reviewed by Ada Chan.

        * platform/win/FileSystemWin.cpp:
        (WebCore::openTemporaryFile):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34750 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 21de6b78
2008-06-23 Steve Falkenburg <sfalken@apple.com>
Fix a math error in my last change.
Reviewed by Ada Chan.
* platform/win/FileSystemWin.cpp:
(WebCore::openTemporaryFile):
2008-06-23 Kevin McCullough <kmccullough@apple.com>
-Build fix.
......@@ -208,7 +208,9 @@ CString openTemporaryFile(const char*, PlatformFileHandle& handle)
// don't include both upper and lowercase since Windows file systems are typically not case sensitive.
const char validChars[] = "0123456789abcdefghijklmnopqrstuvwxyz";
for (int i = 0; i < randomPartLength; ++i)
tempFile[i] = validChars[tempFile[i] % sizeof(validChars)];
tempFile[i] = validChars[tempFile[i] % (sizeof(validChars) - 1)];
ASSERT(strlen(tempFile) == sizeof(tempFile) - 1);
if (!PathCombineA(proposedPath, tempPath, tempFile))
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment