Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (sqlite3_step(statement) == 100) {
- (&answer->rr)[count] = malloc(sizeof(struct dns_rr));
- (answer->rr)[count].name = malloc(strlen(text)+1);
- strcpy((answer->rr)[count].name, text);
- printf("------(answer->rr)[%i].name = %s %p\n", count, (answer->rr)[count].name, (answer->rr)[count].name);
- answer->header.ancount = ++count;
- }
- for (int i = 0; i < answer->header.ancount; i++) {
- printf("++++++(answer->rr)[%i].name = %s %p\n", i, (answer->rr)[i].name, (answer->rr)[i].name);
- }
- ------(answer->rr)[0].name = google.com 0x7f979000c620
- ------(answer->rr)[1].name = google.com 0x7f979000c670
- ------(answer->rr)[2].name = google.com 0x7f979000c6c0
- ++++++(answer->rr)[0].name = goog�� 0x7f979000c620
- ++++++(answer->rr)[1].name = google.com 0x7f979000c670
- ++++++(answer->rr)[2].name = google.com 0x7f979000c6c0
Add Comment
Please, Sign In to add comment