1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 21:23:13 +02:00

Fixed va_list issue with process_list

git-svn-id: svn://svn.anope.org/anope/trunk@967 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@692 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b
2006-02-13 18:35:40 +00:00
parent 66248d41ff
commit 7df341a7d1
2 changed files with 5 additions and 2 deletions
+1
View File
@@ -2,6 +2,7 @@ Anope Version S V N
--------------------
Provided by Anope Dev. <dev@anope.org> - 2005
02/04 A Events for channel kicks and NickServ logout. [ #00]
02/13 F Yet anotehr 64bit issue. [ #00]
01/14 F SGLines will now be removed correctly. [ #00]
01/26 F Export buildStringList() for modules. [#425]
02/11 F Fixed a few memleaks. [#420]
+4 -2
View File
@@ -275,7 +275,7 @@ int process_numlist(const char *numstr, int *count_ret,
{
int n1, n2, i;
int res = 0, retval = 0, count = 0;
va_list args;
va_list args,preserve;
if (!numstr || !*numstr) {
return -1;
@@ -300,7 +300,9 @@ int process_numlist(const char *numstr, int *count_ret,
}
}
for (i = n1; i <= n2 && i >= 0; i++) {
int res = callback(u, i, args);
VA_COPY(preserve,args);
int res = callback(u, i, preserve);
va_end(preserve);
count++;
if (res < 0)
break;