author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Wed, 5 Nov 2008 16:15:59 +0000 (16:15 +0000) | ||
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Wed, 5 Nov 2008 16:15:59 +0000 (16:15 +0000) | ||
commit | 3011838fe9796f24ad3d197057890042b527ef9d | |
tree | f096a06be5c65e49c46ee0c85c591cda08383a50 | tree | snapshot |
parent | f3e0909e124674db029dbfbfb4ae80de94a5d89f | commit | diff |
Fix calculation of extra-opts parameters.
By reading the current list instead of the additional one when counting parameters, extra-opts calculation was allocating insuficient space for the final array if later sections contained more arguments than the sum of all previously parsed sections.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2069 f882894a-f735-0410-b71e-b25c423dba1c
By reading the current list instead of the additional one when counting parameters, extra-opts calculation was allocating insuficient space for the final array if later sections contained more arguments than the sum of all previously parsed sections.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2069 f882894a-f735-0410-b71e-b25c423dba1c
lib/extra_opts.c | diff | blob | history | |
lib/tests/test_opts.c | diff | blob | history |