Skip to content

Commit

Permalink
Fix init_max_accept_queue_size
Browse files Browse the repository at this point in the history
  • Loading branch information
dutor committed Oct 20, 2017
1 parent 4b8e475 commit 85f9e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/lib/iomgr/tcp_server_utils_posix_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static void init_max_accept_queue_size(void) {
if (fgets(buf, sizeof buf, fp)) {
char *end;
long i = strtol(buf, &end, 10);
if (i > 0 && i <= INT_MAX && end && *end == 0) {
if (i > 0 && i <= INT_MAX && end && *end == '\n') {
n = (int)i;
}
}
Expand Down

0 comments on commit 85f9e80

Please sign in to comment.