Build fix after r183646 for less enlightened platforms.
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Apr 2015 22:57:28 +0000 (22:57 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Apr 2015 22:57:28 +0000 (22:57 +0000)
Unreviewed.

* Modules/webdatabase/DatabaseBackendBase.cpp:
(WebCore::fullyQualifiedInfoTableName): Windows doesn’t have stpcpy :(

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@183649 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/Modules/webdatabase/DatabaseBackendBase.cpp

index 6325a28..2fe06cd 100644 (file)
 
 2015-04-30  Brady Eidson  <beidson@apple.com>
 
+        Build fix after r183646 for less enlightened platforms.
+
+        Unreviewed.
+
+        * Modules/webdatabase/DatabaseBackendBase.cpp:
+        (WebCore::fullyQualifiedInfoTableName): Windows doesn’t have stpcpy :(
+
+2015-04-30  Brady Eidson  <beidson@apple.com>
+
         Javascript using WebSQL can create their own WebKit info table.
         <rdar://problem/20688792> and https://bugs.webkit.org/show_bug.cgi?id=144466
 
index be18851..7eff9b2 100644 (file)
@@ -96,8 +96,8 @@ static const char* fullyQualifiedInfoTableName()
 
     static std::once_flag onceFlag;
     std::call_once(onceFlag, []{
-        char* newDestination = stpcpy(qualifiedName, qualifier);
-        strcpy(newDestination, unqualifiedInfoTableName);
+        strcpy(qualifiedName, qualifier);
+        strcpy(qualifiedName + strlen(qualifier), unqualifiedInfoTableName);
     });
 
     return qualifiedName;