Changeset 15282 for trunk/FACT++/dim/src/webDid/webTcpip.c
- Timestamp:
- 04/08/13 15:07:07 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/dim/src/webDid/webTcpip.c
r14937 r15282 163 163 { 164 164 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); 167 167 dna_connp->buffer_size = size; 168 168 } … … 288 288 { 289 289 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; 294 294 if( (host = gethostbyaddr(ipaddr, sizeof(ipaddr), AF_INET)) == (struct hostent *)0 ) 295 295 {
Note:
See TracChangeset
for help on using the changeset viewer.