1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-23 21:45:30 +00:00
profanity/src/ui
Steffen Jaeckel 197b839944 Remove VLA & calm Valgrind
`MB_CUR_MAX` looks like a macro, but it's a function call and therefore
creates a VLA. We don't want that.

Also this array being uninitialized created the following Valgrind error

```
==503529== Conditional jump or move depends on uninitialised value(s)
==503529==    at 0x619F15E: waddnstr (lib_addstr.c:67)
==503529==    by 0x1929B7: _inp_write (inputwin.c:353)
==503529==    by 0x1937D5: _inp_redisplay (inputwin.c:619)
==503529==    by 0x61511B1: rl_forced_update_display (display.c:2693)
==503529==    by 0x193F9D: _inp_rl_send_to_editor (inputwin.c:957)
==503529==    by 0x614642F: _rl_dispatch_subseq (readline.c:916)
==503529==    by 0x6146C85: _rl_dispatch_callback (readline.c:823)
==503529==    by 0x616739F: rl_callback_read_char (callback.c:241)
==503529==    by 0x1923DB: inp_readline (inputwin.c:188)
==503529==    by 0x149860: prof_run (profanity.c:117)
==503529==    by 0x2283E8: main (main.c:186)
==503529==  Uninitialised value was created by a stack allocation
==503529==    at 0x1928B1: _inp_write (inputwin.c:334)
```

Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
2023-05-12 08:39:23 +02:00
..
buffer.c Update copyright year 2023-01-10 10:37:25 +01:00
buffer.h Update copyright year 2023-01-10 10:37:25 +01:00
chatwin.c Improve const-correctness of API 2023-05-12 08:39:19 +02:00
confwin.c Cleanup: gchar as gchar instead of char 2023-05-04 16:15:09 +02:00
console.c Add sessions_alarm 2023-04-18 14:28:20 +02:00
core.c Fix PGP 2023-03-31 12:30:51 +02:00
inputwin.c Remove VLA & calm Valgrind 2023-05-12 08:39:23 +02:00
inputwin.h Add vim modeline 2019-11-13 12:11:05 +01:00
mucwin.c Cleanup: gchar as gchar instead of char 2023-05-04 16:15:09 +02:00
notifier.c User proper ellipsis char 2023-04-09 12:19:18 +02:00
occupantswin.c Update copyright year 2023-01-10 10:37:25 +01:00
privwin.c Adapt to g_string_free glib 2.75.3 change 2023-03-21 10:53:10 +01:00
rosterwin.c Update copyright year 2023-01-10 10:37:25 +01:00
screen.c Basic support for building on NetBSD. 2020-09-04 12:55:20 +02:00
screen.h Add vim modeline 2019-11-13 12:11:05 +01:00
statusbar.c Fixes Statusbar tabs and Cleanup 2023-04-10 16:28:44 +02:00
statusbar.h Apply coding style 2020-07-07 14:18:57 +02:00
titlebar.c Update copyright year 2023-01-10 10:37:25 +01:00
titlebar.h Add vim modeline 2019-11-13 12:11:05 +01:00
tray.c Apply coding style 2020-07-07 14:18:57 +02:00
tray.h Add vim modeline 2019-11-13 12:11:05 +01:00
ui.h Improve const-correctness of API 2023-05-12 08:39:19 +02:00
vcardwin.c Add vCard support 2022-10-18 23:24:30 +01:00
win_types.h Add vCard support 2022-10-18 23:24:30 +01:00
window_list.c Fix quote and url autocompletion for MAM and history 2023-02-13 23:40:58 +02:00
window_list.h Fix quote and url autocompletion for MAM and history 2023-02-13 23:40:58 +02:00
window.c Fixes Statusbar tabs and Cleanup 2023-04-10 16:28:44 +02:00
window.h Fix duplicate download IDs. 2023-03-09 15:02:26 -07:00
xmlwin.c Add config.h in files were it was missing 2021-03-26 19:54:22 +01:00