Don't crash if the user gives a bogus status format with too many elements.

Replace unused .format_var member of status_expandos list with .args. For
expandos which have a subformat, this stores how many arguments are passed to
sprintf() when the subformat is expanded in the callback function.  The
convert_sub_format() function then uses this to limit the number of %s
conversion specifiers it creates in the converted subformat.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@426 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2013-10-30 13:09:03 +00:00
parent 02327eebae
commit 25dcf0709b
2 changed files with 107 additions and 98 deletions

View File

@@ -2,7 +2,7 @@
* Fix STATUS_NOTIFY so that it appears in the right window. (caf)
* Improve handling of padding in status formats. (caf)
* Improve robustness of status formats handling. (caf)
* Use system setenv() in preference to compat bsd_setenv(). (caf)