1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-15 19:38:07 -04:00
profanity/src/ui
Dmitry Podgorny 09e12a826f Fix gcc warnings for cygwin
strncpy(3) is not so safe function and can lead to mistakes. For
example, strncpy(dest, "Profanity", 10); is redundant and leads to
problems when someone changes the source string.

Different example is when 3rd argument equals to length of the
destination buffer. strncpy(3) doesn't terminate string with '\0' when
it truncates. Therefore, the destination string becomes corrupted.

Zeroize storage for 'nid', so the last byte remains '\0' in case of
truncate.
2020-06-24 16:29:19 +03:00
..
buffer.c Build URL ac upon printing of message in window 2020-05-20 10:54:54 +02:00
buffer.h Build URL ac upon printing of message in window 2020-05-20 10:54:54 +02:00
chatwin.c Add and use connection_get_barejid() 2020-05-25 13:04:19 +02:00
confwin.c Allow utf8 symbols as omemo/pgp/otr indicator char 2020-02-20 23:36:10 +01:00
console.c Add option for legacy authentication 2020-06-05 11:37:51 +03:00
core.c ui_room_join() dont get nick twice 2020-04-20 16:01:05 +02:00
inputwin.c Define POSIX macro to have strdup 2020-06-12 16:12:21 +02:00
inputwin.h Add vim modeline 2019-11-13 12:11:05 +01:00
mucwin.c Build URL ac upon printing of message in window 2020-05-20 10:54:54 +02:00
notifier.c Fix gcc warnings for cygwin 2020-06-24 16:29:19 +03:00
occupantswin.c Add workaround for compiler warning 2020-02-14 11:23:19 +01:00
privwin.c Build URL ac upon printing of message in window 2020-05-20 10:54:54 +02:00
rosterwin.c Fix memory leaks in _rosterwin_resources() 2020-04-09 15:17:34 +03:00
screen.c Add vim modeline 2019-11-13 12:11:05 +01:00
screen.h Add vim modeline 2019-11-13 12:11:05 +01:00
statusbar.c Make option to allow hiding windows with no messages in statusbar 2020-05-21 16:15:14 +02:00
statusbar.h Add vim modeline 2019-11-13 12:11:05 +01:00
titlebar.c Fix titlebar write position 2020-05-27 08:59:00 +02:00
titlebar.h Add vim modeline 2019-11-13 12:11:05 +01:00
tray.c Define POSIX macro to have strdup 2020-06-12 16:12:21 +02:00
tray.h Add vim modeline 2019-11-13 12:11:05 +01:00
ui.h List ignored bookmarks 2020-05-24 17:55:08 +02:00
win_types.h Build URL ac upon printing of message in window 2020-05-20 10:54:54 +02:00
window_list.c urlopen: get last URL first 2020-05-29 11:26:18 +02:00
window_list.h Build URL ac upon printing of message in window 2020-05-20 10:54:54 +02:00
window.c Remove unanimous MAM display 2020-04-25 17:19:02 +02:00
window.h Retrieve message type from database 2020-04-08 12:50:23 +02:00
xmlwin.c Allow utf8 symbols as omemo/pgp/otr indicator char 2020-02-20 23:36:10 +01:00