Dan Cross
6d30116ed9
Import strlcpy/strlcat from OpenBSD, start using them.
...
strcpy()/strcat() are inherently dangerous, even when
used with great care. strlcpy() and strlcat() are
much safer replacements, and are available from OpenBSD
under a very liberal license. Import them and start
using them.
Between pointer vectors, malloz, stralloc and now
strlcpy/strlcat, Magicka has much safer, simpler and
more performant infrastructure for dealing with
strings and dynamic collections of various kinds.
Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
2018-10-11 13:58:49 +10:00
Dan Cross
fa014f3a88
Simplify dynamic memory management.
...
Add utility routines and use them to simplify the
use of dynamically allocated memory.
Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
2018-10-10 10:25:29 +10:00
Dan Cross
b28e003945
Chat system: simplify connect logic.
...
Simplify the logic around making connections in the
chat system by delegating to utility functions that
return early on failure.
Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
2018-10-09 15:49:54 +10:00
Dan Cross
d6826137dd
clang-format
...
Fix a bunch of trivial formatting issues by running
`clang-format`.
Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
2018-10-09 15:48:42 +10:00
Andrew Pamment
ddf4e78724
Remove debugging stuff i left in by mistake
2018-02-09 09:10:00 +10:00
Andrew Pamment
de437fb07d
Fix for linux terminal in chat
2018-02-09 08:30:13 +10:00
Andrew Pamment
5feea139a4
Chat system now does dual stack
2018-01-19 21:42:06 +10:00
Andrew Pamment
522343e0f8
OpenBSD support
2018-01-19 17:13:06 +10:00
Andrew Pamment
d268857953
Attempt to fix quote encapsulation
2017-10-02 14:18:29 +10:00
Andrew Pamment
bdcae2e6e1
Fix uninitialized variable
2017-10-02 14:13:40 +10:00
Andrew Pamment
0538bb4cda
Test change to chat system
2017-10-02 14:09:30 +10:00
Andrew Pamment
7098f0e01b
Colour!
2017-10-01 23:16:04 +10:00
Andrew Pamment
4bed63cd25
Longer input lines and linewrapping
2017-10-01 21:56:02 +10:00
Andrew Pamment
e8eda08fb7
Fix typo
2017-10-01 17:09:41 +10:00
Andrew Pamment
ab6e404c38
Stop user timeout in chat...
2017-10-01 17:07:48 +10:00
Andrew Pamment
49d61a93df
Fix address resolution in chat system
2017-09-30 10:03:16 +10:00
Andrew Pamment
c17e0e68c4
I'll get this chat system right eventually
2017-09-30 00:28:12 +10:00
Andrew Pamment
7ee4c14b05
more work on fixing chat system
2017-09-30 00:24:58 +10:00
Andrew Pamment
b7cf0c9497
more experimental work
2017-09-30 00:16:15 +10:00
Andrew Pamment
9dfd8dd453
Experimental work on magichat
2017-09-30 00:10:44 +10:00
Andrew Pamment
e34be09ad8
add motd to magichat..
2017-09-29 22:12:11 +10:00
Andrew Pamment
ffaca86565
Redo Make file setup.. please standby
2017-09-25 13:27:22 +10:00