Update of /cvsroot/aolserver/aolserver/nsd
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv12129
Modified Files:
sockcallback.c
Log Message:
fix size of reallocation unit (many thanks to Wolfgang Winkler for
pointing this out)
(copied from Naviserver)
Index: sockcallback.c
===================================================================
RCS file: /cvsroot/aolserver/aolserver/nsd/sockcallback.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** sockcallback.c 13 Apr 2006 19:06:41 -0000 1.17
--- sockcallback.c 21 Nov 2013 21:43:35 -0000 1.18
***************
*** 354,358 ****
if (max <= table.numEntries) {
max = table.numEntries + 100;
! pfds = ns_realloc(pfds, (size_t)max);
}
nfds = 1;
--- 354,358 ----
if (max <= table.numEntries) {
max = table.numEntries + 100;
! pfds = ns_realloc(pfds, sizeof(struct pollfd) * max);
}
nfds = 1;
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
aolserver-commits mailing list
aolserve...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aolserver-commits