On Wed, Dec 29, 1999 at 04:43:20PM +1100, David Hodson <[EMAIL PROTECTED]> wrote:
> the value to check is loaded into a (signed) int variable, and strtol()
> The easy workaround is to search for a four-byte string value instead.

It would occur to me that the real problem is strtol overflowing. Why does
strtol overflow at all? POSIX requires strtol to be able to convert _all_
long values.

Would specifying the right (signed) constant help?

If you think all this should be documented somewhere, then you are
definitely right ;)

-- 
      -----==-                                             |
      ----==-- _                                           |
      ---==---(_)__  __ ____  __       Marc Lehmann      +--
      --==---/ / _ \/ // /\ \/ /       [EMAIL PROTECTED] |e|
      -=====/_/_//_/\_,_/ /_/\_\       XX11-RIPE         --+
    The choice of a GNU generation                       |
                                                         |

Reply via email to