diff options
author | pgen <p.gen.progs@gmail.com> | 2021-01-24 14:47:05 +0100 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2021-01-24 14:47:05 +0100 |
commit | 50bd576a0e4b297c19fd366cfc5e1c69092aa29c (patch) | |
tree | 14306121a8e18829ec212cd1ff4f60a4b49b1a40 | |
parent | 63a03d17d649f8859387da311e2a4b9307141f2a (diff) |
Initialize the buf array in get_cursor_position
-rw-r--r-- | smenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1414,7 +1414,7 @@ get_terminal_size(int * const r, int * const c, term_t * term) int get_cursor_position(int * const r, int * const c) { - char buf[32]; + char buf[32] = { 0 }; char * s; int count = 64; |