Skip to content

Commit

Permalink
Apply patch from Frank Denis
Browse files Browse the repository at this point in the history
  • Loading branch information
miekg committed Mar 22, 2013
1 parent ae3df65 commit ee742e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct ub_result *new_ub_result() {
}
int ub_ttl(struct ub_result *r) {
int *p;
p = (int*) (r + sizeof(r) - sizeof(int));
p = (int*) ((unsigned char*)r + sizeof(*r) - sizeof(int));
return (int)*p;
}
*/
Expand Down

0 comments on commit ee742e1

Please sign in to comment.