Reinforced null termination of string when appending IP to @ in

resolution.
This commit is contained in:
gardners 2011-12-02 05:45:07 +10:30
parent e1b34d40d7
commit 1c9f7dff12

View File

@ -287,6 +287,7 @@ int fixResponses(struct response_set *responses)
rr->response=(unsigned char *)new;
rr->value_len+=alen;
rr->value_bytes+=alen;
new[rr->value_len]=0; /* Make sure it is null terminated */
if (debug>1) fprintf(stderr,"Response string now '%s'\n",rr->response);
}
}