Commit Graph

595 Commits

Author SHA1 Message Date
Tim Cava
41dcaad142 Cleanup check_on_hook(). Use strlcat rather than strmcat. Don't
initialize variables unless necessary.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@416 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-26 02:54:04 +00:00
Tim Cava
1d1cd09ee3 Cleanup status_notify_windows() a little bit. Use strlcat rather than strmcat.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@415 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-26 02:43:57 +00:00
Tim Cava
e9ef2d4e55 Use strlcat, rather than strmcat, in make_status(). Remove a block of unused
ifdefed out code.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@414 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-26 02:34:25 +00:00
Tim Cava
fdb83238de Cleanup stat_convert_format() a little bit. Use strlcat rather than strmcat.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@413 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-26 02:28:13 +00:00
Tim Cava
26e070565e Use strlcat, rather than strmcat, in fix_status_buffer(). Remove unused
blocks of ifdeffed out code.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@412 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-26 02:20:19 +00:00
Tim Cava
95235006ab Cleanup convert_sub_format() a little bit. Use strlcat rather than strmcat.
Remove a variable that had no affect.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@411 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-26 02:12:42 +00:00
Tim Cava
a3ab6659fc Refactor vsend_to_server() with help from caf.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@410 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-26 00:49:30 +00:00
Tim Cava
eebdc6fb96 Cleanup set_operview_flags(). Rename old to old_flags to use the same
variable name across functions. Use strlcat rather than strmcat.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@409 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-23 17:51:09 +00:00
Tim Cava
b978b76bb7 Cleanup s_watch().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@408 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-23 17:44:20 +00:00
Tim Cava
07cdd587b4 Cleanup ircop_flags_to_str. Make the bufsize IRCD_BUFFER_SIZE instead of
BIG_BUFFER_SIZE. Even with many flags enabled the output string shouldn't
be larger than 512 bytes. Use strlcat rather than strmcat.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@407 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-23 17:33:50 +00:00
Tim Cava
809dc2f727 Cleanup create_channel_list a little bit. Use strlcat rather than strmcat.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@406 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-23 15:49:02 +00:00
Tim Cava
b12e865b9b Cleanup bits_to_lastlog_level a little bit. Use strlcat rather than strmcat.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@405 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-23 14:48:45 +00:00
Tim Cava
95a7534c8c Use strlcat, rather than strmcat, in BX_path_search.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@404 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-23 14:35:37 +00:00
Tim Cava
57020a48e7 Use strlcat, rather than strmcat, in get_userhost().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@403 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-20 18:40:18 +00:00
Tim Cava
22a4c1d9fb Use strlcat, rather than strmcat, in tab_completion().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@402 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-20 18:38:44 +00:00
Tim Cava
bfb9dc3d54 Use strlcat, rather than strmcat, in the definition of HANDLE_TYPE().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@401 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-20 18:32:07 +00:00
Tim Cava
faa052b597 Use strlcat, rather than strmcat, in ignore_list().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@400 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-20 18:20:05 +00:00
Tim Cava
559dfdd278 Use strlcat, rather than strmcat, in fill_it_out().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@399 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-19 20:52:37 +00:00
Tim Cava
12d3fadfb1 Use strlcat, rather than strmcat, in expand_twiddle().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@398 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-19 20:10:19 +00:00
Kevin Easton
c9260b61d3 Fix typo reported by nesta.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@397 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-16 22:27:23 +00:00
Kevin Easton
933478d7b1 Rename cavlink's randm() function to cav_randm() so that it doesn't clash with
the definition from ircaux.h.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@396 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-16 11:59:36 +00:00
Kevin Easton
a5bfc81b04 Fix typo bufer -> buffer.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@395 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-16 11:58:14 +00:00
Kevin Easton
751c53678d Use sizeof instead of size constant when passing buffers to getcwd().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@394 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-14 14:13:42 +00:00
Kevin Easton
69109d9045 Ensure that crypt_msg always leaves space for the trailing CTCP delimiter.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@393 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-14 14:10:26 +00:00
Kevin Easton
86d47f06ce Fix behaviour of /XDEBUG with no arguments (based on EPIC).
Previously it would carefully construct a string, then do nothing with it.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@392 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-14 14:02:09 +00:00
Tim Cava
f5ef9ae80d Use strlcat, rather than strmcat, in function_ftime().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@391 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-13 20:28:11 +00:00
Tim Cava
501d960800 Use strlcat, rather than strmcat, in function_fsize().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@390 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-13 20:26:23 +00:00
Tim Cava
a8db6437aa Use strlcat, rather than strmcat, in function_fexist().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@389 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-13 20:24:12 +00:00
Tim Cava
4f529d214f Cleanup crypt_msg(). Use strlcat rather than sprintf and strmcat.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@388 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-13 20:20:52 +00:00
Tim Cava
e4e2c11429 Use strlcat, rather than strmcat, in xdebugcmd().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@387 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-13 19:33:48 +00:00
Tim Cava
9df878c536 Use strlcat, rather than strmcat, in do_clientinfo().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@386 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-13 19:21:29 +00:00
Tim Cava
9bc7e5c835 Cleanup help() a little bit. Use strlcat rather than strmcat.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@385 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-13 18:56:37 +00:00
Tim Cava
50d29b1f29 Use strlcat, rather than strmcat, in command_completion(). Pass sizeof buffer,
rather than a constant, to snprintf and strlcat.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@384 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-13 18:48:42 +00:00
Tim Cava
44874b28b3 Cleanup l_help() a little bit. Use strlcat and strlcpy rather than
strmcat and sprintf.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@383 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-13 18:33:23 +00:00
Kevin Easton
3de05c07c1 Only build and use the compat.c bsd_setenv/bsd_putenv/bsd_unsetenv on systems
that don't provide the POSIX setenv().

This fixes building plugins that link to compat.c on OS X (shared libraries on
OS X don't have direct access to environ).  It also reduces the binary size on
platforms which provide setenv(), which these days is most of them.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@382 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-09 21:40:55 +00:00
Kevin Easton
040c6abbe4 Add configure check for setenv()
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@381 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-09 20:08:17 +00:00
Kevin Easton
8c618b82fc Fix some longstanding build problems with !WANT_CDCC.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@380 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-06 13:20:46 +00:00
Kevin Easton
742887059d arcfour: Zero the full size of the 'in' array.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@379 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-06 13:18:22 +00:00
Tim Cava
536aea4704 Use strlcpy, rather than strmcpy, in function_prefix. From caf.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@378 13b04d17-f746-0410-82c6-800466cd88b0
2013-10-02 00:02:54 +00:00
Kevin Easton
717d2e88b7 Fix incorrect truncation in cluster() caused by strlcpy().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@377 13b04d17-f746-0410-82c6-800466cd88b0
2013-09-28 14:26:57 +00:00
Kevin Easton
d7bdc25960 Use memcpy() instead of strlcpy() in two places where the source length is
known and the destination length is known to be sufficient.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@376 13b04d17-f746-0410-82c6-800466cd88b0
2013-09-28 14:01:23 +00:00
Tim Cava
07c6a61fed Use strlcpy, rather than strmcpy, in extract().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@375 13b04d17-f746-0410-82c6-800466cd88b0
2013-09-21 05:12:43 +00:00
Tim Cava
d01233f559 Use strlcpy, rather than strmcpy, in extract2().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@374 13b04d17-f746-0410-82c6-800466cd88b0
2013-09-21 05:11:07 +00:00
Tim Cava
21612025eb Use strlcpy and strlcat, rather than strmcpy and strmcat, in decrypt_msg().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@373 13b04d17-f746-0410-82c6-800466cd88b0
2013-09-18 23:41:46 +00:00
Tim Cava
ea5aa01f87 Use strlcpy, rather than strmcpy, in cluster().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@372 13b04d17-f746-0410-82c6-800466cd88b0
2013-09-18 23:28:07 +00:00
Tim Cava
6afd2d4a87 Use strlcpy, rather than strmcpy, in Tcl_GetKeyedListField().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@371 13b04d17-f746-0410-82c6-800466cd88b0
2013-09-18 23:17:23 +00:00
Tim Cava
c907a548e0 Use strlcpy, rather than strmcpy, in Tcl_GetKeyedListKeys().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@370 13b04d17-f746-0410-82c6-800466cd88b0
2013-09-18 23:16:12 +00:00
Tim Cava
4de9626a99 Use strlcpy, rather than strmcpy, in set_input_heb().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@369 13b04d17-f746-0410-82c6-800466cd88b0
2013-08-26 08:06:36 +00:00
Tim Cava
fafd888528 Cleanup rename_file() a little bit. Use strlcpy, rather than strmcpy.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@368 13b04d17-f746-0410-82c6-800466cd88b0
2013-08-26 08:04:21 +00:00
Tim Cava
c13b00be0c Use strlcpy, rather than strmcpy, in set_input().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@367 13b04d17-f746-0410-82c6-800466cd88b0
2013-08-23 05:37:03 +00:00