Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor change for port number option #3

Closed
takigama opened this issue Jun 25, 2012 · 2 comments
Closed

Minor change for port number option #3

takigama opened this issue Jun 25, 2012 · 2 comments

Comments

@takigama
Copy link

I wanted to run mine on a high port 10000+, but found the size of the variable used for reading this was actually 1 short of what it should be (in the options parsing components), i've modified mine and seems to work fine.

diff --git a/fanout.c b/fanout.c
index 6e041ad..e91ce11 100644
--- a/fanout.c
+++ b/fanout.c
@@ -319,7 +319,7 @@ xit\n");
exit (EXIT_FAILURE);
}

  • char buf[5];
  • char buf[6];
    snprintf(buf, sizeof buf, "%d", portno);

e = getaddrinfo (NULL, buf, &hints, &ai);

@travisghansen
Copy link
Owner

Thanks for reporting, I've committed the change.

@takigama
Copy link
Author

Thanks, wow, that was quick, i was just rebuilding the machine im using it on and went to edit that and thought "oh maybe he already changed that"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants