Changeset ee0805a
- Timestamp:
- 05/02/16 11:43:02 (5 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, master, ndag_format, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- e26c1fc
- Parents:
- f030e50
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/tutorial/sourcedemo.c
r74516fe ree0805a 37 37 /* Use inet_ntop to convert the address into a string using 38 38 * dotted decimal notation */ 39 printf("%s ", inet_ntop(AF_INET, &(v4->sin_addr), str, 20));39 printf("%s ", inet_ntop(AF_INET, &(v4->sin_addr), str, sizeof(str))); 40 40 } 41 41 … … 45 45 /* Use inet_ntop to convert the address into a string using 46 46 * IPv6 address notation */ 47 printf("%s ", inet_ntop(AF_INET6, &(v6->sin6_addr), str, 20));47 printf("%s ", inet_ntop(AF_INET6, &(v6->sin6_addr), str, sizeof(str))); 48 48 } 49 49
Note: See TracChangeset
for help on using the changeset viewer.