nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nitcorn/file_server: fix warnings on file_stat calls
[nit.git]
/
lib
/
core
/
time.nit
diff --git
a/lib/core/time.nit
b/lib/core/time.nit
index
f57e8d8
..
1555183
100644
(file)
--- a/
lib/core/time.nit
+++ b/
lib/core/time.nit
@@
-136,7
+136,7
@@
extern class Tm `{struct tm *`}
# Convert `self` to a human readable String corresponding to `format`.
# TODO document allowed format.
# Convert `self` to a human readable String corresponding to `format`.
# TODO document allowed format.
- fun strftime(format: String): String import String.to_cstring, NativeString.to_s `{
+ fun strftime(format: String): String import String.to_cstring, NativeString.to_s_with_copy `{
char* buf, *c_format;
buf = (char*)malloc(100);
char* buf, *c_format;
buf = (char*)malloc(100);