diff options
| author | Bernard Xiong <[email protected]> | 2018-09-25 11:04:02 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2018-09-25 11:04:02 +0800 |
| commit | 32939be90c7a96256591aa973aa6b2a9891f3a67 (patch) | |
| tree | 975efdb5e119daae5fe95598600214ffe67e8962 /components/libc/compilers/armlibc/stubs.c | |
| parent | e877460a532ac94031790096106fee9e47b7fcc9 (diff) | |
[libc] Fix the fputc issue when enable microlib.
Diffstat (limited to 'components/libc/compilers/armlibc/stubs.c')
| -rw-r--r-- | components/libc/compilers/armlibc/stubs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/compilers/armlibc/stubs.c b/components/libc/compilers/armlibc/stubs.c index 83306a258d..dbb60c8a44 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; } |
