Todd C. Miller Thu, 07 Sep 2017 13:30:49 -0700
Why not just use strtol() then? The check against MINXHDRSZ will catch any negative values.
- todd