[webkit-changes] cvs commit: JavaScriptCore/kjs date_object.cpp
David
hyatt at opensource.apple.com
Fri Dec 16 14:56:42 PST 2005
hyatt 05/12/16 14:56:42
Modified: kjs date_object.cpp
Log:
Fix the calls to strftime on the non-apple code path to take const tm* and not just tm
Revision Changes Path
1.65 +3 -4 JavaScriptCore/kjs/date_object.cpp
Index: date_object.cpp
===================================================================
RCS file: /cvs/root/JavaScriptCore/kjs/date_object.cpp,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -r1.64 -r1.65
--- date_object.cpp 11 Dec 2005 02:05:42 -0000 1.64
+++ date_object.cpp 16 Dec 2005 22:56:41 -0000 1.65
@@ -585,16 +585,15 @@
return jsString(formatLocaleDate(exec, secs, false, true, args));
break;
#else
- case ToLocaleString:
- strftime(timebuffer, bufsize, "%c", t);
+ strftime(timebuffer, bufsize, "%c", &t);
return jsString(timebuffer);
break;
case ToLocaleDateString:
- strftime(timebuffer, bufsize, "%x", t);
+ strftime(timebuffer, bufsize, "%x", &t);
return jsString(timebuffer);
break;
case ToLocaleTimeString:
- strftime(timebuffer, bufsize, "%X", t);
+ strftime(timebuffer, bufsize, "%X", &t);
return jsString(timebuffer);
break;
#endif
More information about the webkit-changes
mailing list