Title: [96253] trunk/Source/WebCore
Revision
96253
Author
[email protected]
Date
2011-09-28 13:18:35 -0700 (Wed, 28 Sep 2011)

Log Message

FTPDirectoryDocument Shows Garbled String for Last Modified Date
https://bugs.webkit.org/show_bug.cgi?id=69011

Reviewed by Dan Bernstein.

Force WTF::String concatenation instead of an accidental char* pointer addition.

* html/FTPDirectoryDocument.cpp:
(WebCore::processFileDateString):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (96252 => 96253)


--- trunk/Source/WebCore/ChangeLog	2011-09-28 20:10:53 UTC (rev 96252)
+++ trunk/Source/WebCore/ChangeLog	2011-09-28 20:18:35 UTC (rev 96253)
@@ -1,3 +1,15 @@
+2011-09-28  Joseph Pecoraro  <[email protected]>
+
+        FTPDirectoryDocument Shows Garbled String for Last Modified Date
+        https://bugs.webkit.org/show_bug.cgi?id=69011
+
+        Reviewed by Dan Bernstein.
+
+        Force WTF::String concatenation instead of an accidental char* pointer addition.
+
+        * html/FTPDirectoryDocument.cpp:
+        (WebCore::processFileDateString):
+
 2011-09-28  Nate Chapin  <[email protected]>
 
         Fix a regression in r96060. ResourceLoader shouldn't get

Modified: trunk/Source/WebCore/html/FTPDirectoryDocument.cpp (96252 => 96253)


--- trunk/Source/WebCore/html/FTPDirectoryDocument.cpp	2011-09-28 20:10:53 UTC (rev 96252)
+++ trunk/Source/WebCore/html/FTPDirectoryDocument.cpp	2011-09-28 20:18:35 UTC (rev 96253)
@@ -253,9 +253,9 @@
     String dateString;
 
     if (fileTime.tm_year > -1)
-        dateString = months[month] + ' ' + String::number(fileTime.tm_mday) + ", " + String::number(fileTime.tm_year);
+        dateString = String(months[month]) + " " + String::number(fileTime.tm_mday) + ", " + String::number(fileTime.tm_year);
     else
-        dateString = months[month] + ' ' + String::number(fileTime.tm_mday) + ", " + String::number(now.tm_year);
+        dateString = String(months[month]) + " " + String::number(fileTime.tm_mday) + ", " + String::number(now.tm_year);
 
     return dateString + timeOfDay;
 }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to