projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stdio: handle file position correctly at program exit
[musl]
/
src
/
time
/
__asctime.c
diff --git
a/src/time/__asctime.c
b/src/time/__asctime.c
index
1853580
..
7cc4f50
100644
(file)
--- a/
src/time/__asctime.c
+++ b/
src/time/__asctime.c
@@
-1,6
+1,7
@@
#include <time.h>
#include <stdio.h>
#include <langinfo.h>
#include <time.h>
#include <stdio.h>
#include <langinfo.h>
+#include "atomic.h"
const char *__langinfo(nl_item);
const char *__langinfo(nl_item);
@@
-21,7
+22,7
@@
char *__asctime(const struct tm *tm, char *buf)
* application developers that they may not be so lucky
* on other implementations (e.g. stack smashing..).
*/
* application developers that they may not be so lucky
* on other implementations (e.g. stack smashing..).
*/
-
*(int*)0 = 0
;
+
a_crash()
;
}
return buf;
}
}
return buf;
}