diff options
author | Daniel Stenberg <daniel@haxx.se> | 2007-05-26 22:02:29 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2007-05-26 22:02:29 +0000 |
commit | 8bd7197a8fb6d4a49df7efa25361c95ebdfc1d9c (patch) | |
tree | 167549e31b9c921126b0708140ca1cabc2c46e27 /tests/FILEFORMAT | |
parent | ebb5e1db4b0a3cb1061ac992d615ad0bdadf2fd7 (diff) |
Primarily this fixes an off-by-one buffer overwrite (rare but still existing).
I also switched from calloc() to malloc() as a minor performance boost since
the rest of the code fills in the structs fine anyway - and they must for the
case when we use the stack-based auto variable array instead of the allocated
one.
I made the loop filling in poll_fds[] break when poll_nfds is reached as a
minor speed improvement.
Diffstat (limited to 'tests/FILEFORMAT')
0 files changed, 0 insertions, 0 deletions