Skip to content

Commit acf4cb1

Browse files
committed
fixed dns length issue
1 parent cc67208 commit acf4cb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chap05/dns_query.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ int main(int argc, char *argv[]) {
234234
exit(0);
235235
}
236236

237-
if (strlen(argv[1]) > 255) {
237+
if (strlen(argv[1]) > 253) {
238238
fprintf(stderr, "Hostname too long.");
239239
exit(1);
240240
}

0 commit comments

Comments
 (0)