X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Ftime%2F__asctime.c;h=7cc4f503ffc2c5662f8779d2f8c1e992726c1267;hb=2b964b010e5d37cb2ff712d57a14095188d689e3;hp=18535802b8feee63d1fae7d4781b1aa64ff6f9da;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/time/__asctime.c b/src/time/__asctime.c index 18535802..7cc4f503 100644 --- a/src/time/__asctime.c +++ b/src/time/__asctime.c @@ -1,6 +1,7 @@ #include #include #include +#include "atomic.h" 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..). */ - *(int*)0 = 0; + a_crash(); } return buf; }