diff options
| author | Zach DeCook <zachdecook@librem.one> | 2022-01-22 04:50:55 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2022-01-22 04:50:55 -0500 |
| commit | d04f7e07d4a5278e8e8530925e2852b591d6e37b (patch) | |
| tree | 1821a1b73a48a507357560fe36af242fb48208b4 /keyboard.c | |
| parent | da3ce831fdeed71dd2a0e3deb977d6bc770ef2f9 (diff) | |
| download | suggpicker-d04f7e07d4a5278e8e8530925e2852b591d6e37b.tar.gz | |
input: fix obvious memory leak
Diffstat (limited to 'keyboard.c')
| -rw-r--r-- | keyboard.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/keyboard.c b/keyboard.c index bfebdbe..1cc50da 100644 --- a/keyboard.c +++ b/keyboard.c @@ -15,9 +15,9 @@ void kbd_init(struct kbd *kb) { fprintf(stderr, "Initializing keyboard\n"); - kb->suggs[0].label = "Hello"; - kb->suggs[1].label = "World"; - kb->suggs[2].label = "World"; + kb->suggs[0].label = strdup("Hello"); + kb->suggs[1].label = strdup("Sugar"); + kb->suggs[2].label = strdup("Pie"); kb->suggs[3].label = NULL; } |
