Skip to content

Commit

Permalink
[libc] Fix the fputc issue when enable microlib.
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardXiong committed Sep 25, 2018
1 parent e877460 commit 32939be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/libc/compilers/armlibc/stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 32939be

Please sign in to comment.