diff --git a/components/libc/compilers/armlibc/stubs.c b/components/libc/compilers/armlibc/stubs.c index 83306a258d444af06cfb3b56dfa7be5e28d63bfe..dbb60c8a44aacfc66cf9538c40aec68a3533cd00 100644 --- a/components/libc/compilers/armlibc/stubs.c +++ b/components/libc/compilers/armlibc/stubs.c @@ -315,7 +315,7 @@ int fputc(int c, FILE *f) { char ch[2] = {0}; - ch[1] = c; + ch[0] = c; rt_kprintf(&ch[0]); return 1; }