1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-16 21:35:24 +00:00
profanity/src
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
..
command Add option for legacy authentication 2020-06-05 11:37:51 +03:00
config Fix NULL terminated list 2020-06-23 14:42:09 +02:00
event Add option for legacy authentication 2020-06-05 11:37:51 +03:00
omemo Add and use connection_get_barejid() 2020-05-25 13:04:19 +02:00
otr db: log all incoming and outgoing messages 2020-04-06 10:50:20 +02:00
pgp Add context to autocomplete_with_func and use it for omemo trust command 2020-01-31 10:07:08 +01:00
plugins Fix reading/writing linked files 2020-06-13 15:02:43 +02:00
tools Add missed string.h 2020-06-24 03:07:53 +03:00
ui Fix gcc warnings for cygwin 2020-06-24 16:29:19 +03:00
xmpp Fix possible segfault in xmpp/message.c 2020-06-16 17:52:01 +03:00
common.c Fix reading/writing linked files 2020-06-13 15:02:43 +02:00
common.h Get output and error streams from the command spawned by external_call() 2020-06-03 13:09:29 +02:00
database.c Fix carbon logging 2020-05-27 22:06:04 +02:00
database.h db: Use type from message struct instead of having individual functions 2020-04-06 19:15:06 +02:00
log.c Define POSIX macro to have strdup 2020-06-12 16:12:21 +02:00
log.h Remove chat_log_get_previous() 2020-04-06 14:42:52 +02:00
main.c Add -t theme option 2020-03-24 23:00:39 +01:00
profanity.c Define lock in profanity.h as extern 2020-04-17 10:14:27 +02:00
profanity.h Define lock in profanity.h as extern 2020-04-17 10:14:27 +02:00