41 Commits

Author SHA1 Message Date
Andrew Pamment
af8936c02e Haiku Support
Hope I didn't break things!
2018-10-18 11:36:02 +10:00
Andrew Pamment
93e08c0c3d Fix for file uploads 2018-10-18 08:37:29 +10:00
Dan Cross
32d1c70622 Mostly trivial whitespace cleanups.
Clang-format and removing whitespace at the ends of lines.

Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
2018-10-17 13:11:38 +10:00
Dan Cross
359a190ee9 Remove the last of the sprintf() calls.
sprintf() is unsafe since it may overflow the bounds
of its destination buffers.  Remove the last of the
calls to it; all the logic has either been rewritten
to use snprintf() or other forms of string copying
such as strlcpy().

Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
2018-10-17 13:11:33 +10:00
Dan Cross
aacb1000c8 Arrays to vectors.
This is the big push to get rid of the last of the
unadorned dynamic arrays.  Use ptr_vectors for things
like mail conferences etc.

Lots of incidental cleanup along the way.

Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
2018-10-17 13:11:25 +10:00
Dan Cross
588242f68e Squash use of strncat(). Replaced by strlcat().
Note that the calls to strncat() did not account for the
NUL terminating byte, and for very long queries could have
led to a buffer overrun.

Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
2018-10-16 11:00:12 +10:00
Dan Cross
f2288e9cec More adoption of stralloc for string handling.
Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
2018-10-13 10:22:44 +10:00
Dan Cross
54093060cb More cleanups.
More cleaning up construction of arrays of things.
Introduce a utility function called, `split_on_space`
that tokenizes a string on a space character; use
it in most places where `strtok()` had been called.

More use of the ptr_vector type.  Introduce a utility
function to get access to the pointers without consuming
the vector; this is used in the files code.

Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
2018-10-10 10:25:47 +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
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
4b90398cbf Stop using system() 2018-06-20 19:39:57 +10:00
Andrew Pamment
0d90a3cef5 fix for sunos 2018-05-14 15:33:40 +10:00
Andrew Pamment
c2b956c13a Handle zip not installed gracefully 2018-02-09 19:35:14 +10:00
Andrew Pamment
f5cd8ddb03 Remove IAC debug output 2018-02-05 11:52:01 +10:00
Andrew Pamment
027c047b42 some debugging IAC codes in file transfers 2018-02-01 13:42:57 +10:00
Andrew Pamment
5c0214c737 disable genurls if www_server is not enabled 2018-01-24 11:39:27 +10:00
Andrew Pamment
be99702b84 graphical fixes 2018-01-23 21:54:45 +10:00
Andrew Pamment
84a3d271df first attempt at www downlods WIP 2018-01-23 20:57:58 +10:00
Andrew Pamment
9ee460ca51 fix files again... 2018-01-22 20:12:41 +10:00
Andrew Pamment
1ebf8780b4 fixes for file downloading 2018-01-22 19:59:31 +10:00
Andrew Pamment
6c3df730aa PageUp / Page Down Home / End in lists 2018-01-20 12:46:50 +10:00
Andrew Pamment
4c446797d8 Tweaks to file area chooser 2018-01-18 08:58:32 +10:00
Andrew Pamment
5690c91de2 Work around bug in htmlterm for displaying email 2018-01-17 20:15:51 +10:00
Andrew Pamment
85fc0d57cd File area choosers now use lightbars 2018-01-17 16:03:15 +10:00
Andrew Pamment
24994fb150 Attempt to add new files only option to file list 2018-01-08 14:02:43 +10:00
Andrew Pamment
5543f94e01 Magicka now builds and runs on SunOS 2017-10-20 07:27:58 +10:00
Andrew Pamment
cf4e5826bf Finish work on file search 2017-10-19 13:40:42 +10:00
Andrew Pamment
b24034fc52 fix a typo 2017-10-19 13:34:16 +10:00
Andrew Pamment
7743d65513 Fix seclevel checking 2017-10-19 13:27:33 +10:00
Andrew Pamment
7eb58c4dbd Change to LIKE 2017-10-19 13:24:21 +10:00
Andrew Pamment
0edc68105b MOre diagnostics 2017-10-19 13:13:52 +10:00
Andrew Pamment
bbf067d53a More diagnostics 2017-10-19 13:10:42 +10:00
Andrew Pamment
0adf41dff9 change commas to OR 2017-10-19 13:03:52 +10:00
Andrew Pamment
6b4cf60c7b Add diagnostics 2017-10-19 13:01:10 +10:00
Andrew Pamment
8a46f4b2e4 Highly experimental file search and listing 2017-10-19 12:48:45 +10:00
Andrew Pamment
784991b7bb Add file order prompt 2017-09-29 06:14:21 +10:00
Andrew Pamment
8c7c432dd4 Don't show unapproved files in new filescan 2017-09-28 19:16:59 +10:00
Andrew Pamment
d7ed1d1619 Fix filescan 2017-09-28 19:15:33 +10:00
Andrew Pamment
a74caa16b2 Initial try at new file scan 2017-09-28 19:11:00 +10:00
Andrew Pamment
7aea5a869d Update files to have upload date... 2017-09-28 17:56:17 +10:00
Andrew Pamment
ffaca86565 Redo Make file setup.. please standby 2017-09-25 13:27:22 +10:00