diff --git a/whois.c b/whois.c index 7c2860f..75eeca8 100644 --- a/whois.c +++ b/whois.c @@ -818,6 +818,7 @@ char *query_crsnic(const int sock, const char *query) int state = 0; temp = malloc(strlen("domain ") + strlen(query) + 2 + 1); + *temp = '\0'; if (!strpbrk(query, "=~ ")) strcpy(temp, "domain ");