Kevin Easton
debfebf3a7
Fix a double-free bug when a window on an alternate screen queries an exec process
...
The 'free_it' variable was only initialised to zero at the start of the function, so when non-main screens
were processed in the later iterations of the loop, it could keep a value of 1 from the previous iteration.
We don't actually need a free_it variable at all - just use a NULL value of ptr_free to indicate that there
is nothing to free (and passing a NULL to new_free() is a no-op).
This also simplifies a test because ptr is always non-NULL (strip_ansi() never returns NULL).
2017-02-16 23:12:38 +11:00
Kevin Easton
1f062fb7de
Remove unnecessary repeated check
...
tmp has already been tested in the previous line.
2017-02-12 23:55:16 +11:00
Kevin Easton
3d353f5a48
Remove dead store to a variable
2017-02-11 22:42:32 +11:00
Kevin Easton
8649c17912
Change edit_char() from unsigned char to char
...
This squashes a few more warnings.
2015-06-20 00:03:15 +10:00
Kevin Easton
53f7c374cf
Convert strip_ansi() from unsigned char to char
...
This required a few careful changes to ensure that the result does the same
thing.
Also included a few little cleanups in this function.
2015-06-19 23:12:10 +10:00
Tim Cava
72a20a8b82
Remove a variable that is set but unused.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@497 13b04d17-f746-0410-82c6-800466cd88b0
2014-03-02 21:25:49 +00:00
Tim Cava
b3cd3509d0
Remove a variable that is set but unused.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@496 13b04d17-f746-0410-82c6-800466cd88b0
2014-03-02 21:21:40 +00:00
Tim Cava
c9d059cee6
Convert sprintf calls to snprintf. From pvaldes.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@455 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-11 21:28:55 +00:00
Tim Cava
112b38ac7a
Revert the last commit. It accidentally had autogenerated files in it.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@432 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-07 03:00:24 +00:00
Tim Cava
276fd24258
Use snprintf rather than sprintf. From pvaldes.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@431 13b04d17-f746-0410-82c6-800466cd88b0
2013-11-07 02:41:16 +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
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
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
Tim Cava
d7a0c781f8
Convert simple uses of alloca/strcpy to LOCAL_COPY.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@232 13b04d17-f746-0410-82c6-800466cd88b0
2013-02-24 07:32:59 +00:00
Kevin Easton
97174632dc
Add explicit default value for NICK_COMPLETION_CHAR.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@160 13b04d17-f746-0410-82c6-800466cd88b0
2012-03-06 11:14:51 +00:00
Kevin Easton
736777bea3
Change instances of open-coded "3" in calls to prepare_command() with PC_SILENT macro.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@137 13b04d17-f746-0410-82c6-800466cd88b0
2011-09-06 06:48:57 +00:00
Kevin Easton
3de93b1dbc
Far-reaching changes to make BitchX compatible with 64 bit architectures
...
like x86-64, where sizeof(int) != sizeof (void *). This involves correctly
casting every function pointer from the global table to the correct
function type, which has the added benefit of allowing type-checking of
function arguments and return values.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@26 13b04d17-f746-0410-82c6-800466cd88b0
2008-04-30 13:57:56 +00:00
Kevin Easton
533c3dbcbf
Turn on SVN keyword replacement for $Date$, $Author$, $Revision$, $Id$ for all
...
*.c and *.h files.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/branches/ircii-pana-1.1@3 13b04d17-f746-0410-82c6-800466cd88b0
2008-02-25 09:49:14 +00:00
Kevin Easton
28febcfea9
Initial import of the ircii-pana-1.1-final source tree.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/tags/ircii-pana-1.1-final@1 13b04d17-f746-0410-82c6-800466cd88b0
2008-02-25 09:25:32 +00:00