summaryrefslogtreecommitdiff
path: root/whois.c
diff options
context:
space:
mode:
Diffstat (limited to 'whois.c')
-rw-r--r--whois.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/whois.c b/whois.c
index 7be6a13..cddacf3 100644
--- a/whois.c
+++ b/whois.c
@@ -1118,7 +1118,7 @@ char *convert_inaddr(const char *s)
{
char *new;
char *endptr;
- unsigned int a, b = 0, c = 0;
+ long int a, b = 0, c = 0;
errno = 0;
@@ -1142,7 +1142,7 @@ char *convert_inaddr(const char *s)
}
new = malloc(sizeof("255.255.255.255"));
- sprintf(new, "%d.%d.%d.0", c, b, a);
+ sprintf(new, "%ld.%ld.%ld.0", c, b, a);
return new;
}