Ignore:
Timestamp:
04/08/13 15:07:07 (11 years ago)
Author:
tbretz
Message:
Updated to v20r7.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/dim/src/webDid/webTcpip.c

    r14937 r15282  
    163163        {
    164164                dna_connp->buffer =
    165                                 (int *) realloc(dna_connp->buffer, size);
    166                 memset(dna_connp->buffer, 0, size);
     165                                (int *) realloc(dna_connp->buffer, (size_t)size);
     166                memset(dna_connp->buffer, 0, (size_t)size);
    167167                dna_connp->buffer_size = size;
    168168        }
     
    288288        {
    289289                sscanf(node,"%d.%d.%d.%d",&a, &b, &c, &d);
    290             ipaddr[0] = a;
    291             ipaddr[1] = b;
    292             ipaddr[2] = c;
    293             ipaddr[3] = d;
     290            ipaddr[0] = (unsigned char)a;
     291            ipaddr[1] = (unsigned char)b;
     292            ipaddr[2] = (unsigned char)c;
     293            ipaddr[3] = (unsigned char)d;
    294294                if( (host = gethostbyaddr(ipaddr, sizeof(ipaddr), AF_INET)) == (struct hostent *)0 )
    295295                {
Note: See TracChangeset for help on using the changeset viewer.