Changeset 92f4ec5


Ignore:
Timestamp:
2008-08-10T23:51:48Z (16 years ago)
Author:
ulim <a.sporto+bee@…>
Branches:
master
Children:
66be784
Parents:
a2b99ec
Message:

fixes bug on 32bit archs in DCC code.

Shouldn't atoi be the same on 64 and 32bits? Strange.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dcc.c

    ra2b99ec r92f4ec5  
    703703                if ( pmatch[6].rm_so > 0 )
    704704                {
    705                         struct in_addr ipaddr = { .s_addr = htonl( atoi( input + pmatch[5].rm_so ) ) };
     705                        struct in_addr ipaddr = { .s_addr = htonl( strtoul( input + pmatch[5].rm_so, NULL, 10 ) ) };
    706706                        host = inet_ntoa( ipaddr );
    707707                } else
Note: See TracChangeset for help on using the changeset viewer.