cast to avoid size_t vs int issue

This commit is contained in:
Love Hörnquist Åstrand
2011-07-24 13:07:07 -07:00
parent 8f2294e1f9
commit af4aea85ae

View File

@@ -362,7 +362,7 @@ update_dns(void)
size_t len;
len = strlen(update->realm);
asprintf(&dnsdata, "%c%s", len, update->realm);
asprintf(&dnsdata, "%c%s", (int)len, update->realm);
if (dnsdata == NULL)
errx(1, "malloc");