aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/librdns/packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/librdns/packet.c')
-rw-r--r--contrib/librdns/packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/librdns/packet.c b/contrib/librdns/packet.c
index c07418604..532b5de91 100644
--- a/contrib/librdns/packet.c
+++ b/contrib/librdns/packet.c
@@ -131,7 +131,7 @@ rdns_format_dns_name (struct rdns_resolver *resolver, const char *in,
/* We need to encode */
p = in;
/* We allocate 4 times more memory as we cannot guarantee encoding bounds */
- olen = inlen * sizeof (guint32) + 1 + sizeof ("xn--") * labels;
+ olen = inlen * sizeof (int32_t) + 1 + sizeof ("xn--") * labels;
*out = malloc (olen + 1);
if (*out == NULL) {