summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2021-01-24 14:47:05 +0100
committerpgen <p.gen.progs@gmail.com>2021-01-24 14:47:05 +0100
commit50bd576a0e4b297c19fd366cfc5e1c69092aa29c (patch)
tree14306121a8e18829ec212cd1ff4f60a4b49b1a40
parent63a03d17d649f8859387da311e2a4b9307141f2a (diff)
Initialize the buf array in get_cursor_position
-rw-r--r--smenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/smenu.c b/smenu.c
index 062e730..c254d87 100644
--- a/smenu.c
+++ b/smenu.c
@@ -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;