소스 검색

[libc] Fix the fputc issue when enable microlib.

Bernard Xiong 6 년 전
부모
커밋
32939be90c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      components/libc/compilers/armlibc/stubs.c

+ 1 - 1
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;
 }