about summary refs log tree commit diff
path: root/src/time/__asctime.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/time/__asctime.c')
-rw-r--r--src/time/__asctime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/time/__asctime.c b/src/time/__asctime.c
index d31f6347..7cc4f503 100644
--- a/src/time/__asctime.c
+++ b/src/time/__asctime.c
@@ -1,6 +1,7 @@
 #include <time.h>
 #include <stdio.h>
 #include <langinfo.h>
+#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..).
 		 */
-		*(volatile int*)0 = 0;
+		a_crash();
 	}
 	return buf;
 }