comparison src/network.c @ 9456:0577bb34622d

[gaim-migrate @ 10280] This fixes bug #964043 We were truncating the port to 4 ascii digits, because our buffer was too small. Oops. Let this be an example to you, not all users are on crack. This bug was somewhat confusing by the fact that the spin button to choose the port is only big enough to show 4 digits at a time. That's completely unrelated though, you can hit HOME and END and stuff to see all the digits and it saves file and all. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Tue, 06 Jul 2004 06:22:14 +0000
parents 5b4b3fb286b0
children c6dedd37ea5c
comparison
equal deleted inserted replaced
9455:5b4b3fb286b0 9456:0577bb34622d
152 int listenfd = -1; 152 int listenfd = -1;
153 const int on = 1; 153 const int on = 1;
154 #if HAVE_GETADDRINFO 154 #if HAVE_GETADDRINFO
155 int errnum; 155 int errnum;
156 struct addrinfo hints, *res, *next; 156 struct addrinfo hints, *res, *next;
157 char serv[5]; 157 char serv[6];
158 158
159 /* 159 /*
160 * Get a list of addresses on this machine. 160 * Get a list of addresses on this machine.
161 */ 161 */
162 snprintf(serv, sizeof(serv), "%hu", port); 162 snprintf(serv, sizeof(serv), "%hu", port);