Merge pull request #28 from l29ah/strncat-warning

client.c: don't produce an useless strncat usage warning
This commit is contained in:
Erik Ekman 2019-08-04 13:42:13 +02:00 committed by GitHub
commit d37ebdaca7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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