Skip to content

Commit 635e16a

Browse files
yandldmysterywolf
authored andcommitted
[libc] 修复 ctime()死机问题
1 parent ad256db commit 635e16a

File tree

1 file changed

+2
-2
lines changed
  • components/libc/compilers/common

1 file changed

+2
-2
lines changed

components/libc/compilers/common/ctime.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ static const short __spm[13] =
7070
(31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 + 31),
7171
};
7272

73-
rt_align(RT_ALIGN_SIZE) static const char *days = "Sun Mon Tue Wed Thu Fri Sat ";
74-
rt_align(RT_ALIGN_SIZE) static const char *months = "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec ";
73+
rt_align(RT_ALIGN_SIZE) static const char days[] = "Sun Mon Tue Wed Thu Fri Sat ";
74+
rt_align(RT_ALIGN_SIZE) static const char months[] = "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec ";
7575

7676
#ifndef __isleap
7777
static int __isleap(int year)

0 commit comments

Comments
 (0)