1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

Fixed calloc() and getopt_long()

Added integer overflow test to calloc().

Tiny change in getopt_long() so that the value pointed to by the "longindex" parameter is always initialized to an invalid index position (that being -1), instead of 0. The value of 0 can break some shell commands, most notably GNU wget.
This commit is contained in:
obarthel
2017-05-01 18:06:23 +02:00
parent 053a61fc4b
commit 1b2c798467
16 changed files with 53 additions and 43 deletions

View File

@ -1 +1 @@
213
214