client.c: don't produce an useless strncat usage warning

This commit is contained in:
Sergey Alirzaev 2018-10-01 04:04:15 +03:00
parent 27e5d6fadd
commit b406009c6d
No known key found for this signature in database
GPG Key ID: 27ECE5E231D08747
1 changed files with 2 additions and 2 deletions

View File

@ -1290,8 +1290,8 @@ send_upenctest(int fd, const char *s)
buf[3] = b32_5to8((rand_seed ) & 0x1f); buf[3] = b32_5to8((rand_seed ) & 0x1f);
rand_seed++; rand_seed++;
strncat(buf, s, 512); strncat(buf, s, 128);
strncat(buf, ".", 512); strncat(buf, ".", 2);
strncat(buf, topdomain, 512 - strlen(buf)); strncat(buf, topdomain, 512 - strlen(buf));
send_query(fd, buf); send_query(fd, buf);
} }