Removed
Link Here
|
1 |
--- bing.c.orig Thu Jul 20 16:45:32 1995 |
2 |
+++ bing.c Sat Mar 4 16:13:05 2000 |
3 |
@@ -718,13 +718,13 @@ |
4 |
u_long l; |
5 |
{ |
6 |
struct hostent *hp; |
7 |
- static char buf[80]; |
8 |
+ static char buf[MAXHOSTNAMELEN+19]; |
9 |
|
10 |
if ((options & F_NUMERIC) || |
11 |
!(hp = gethostbyaddr((char *)&l, 4, AF_INET))) |
12 |
- (void)sprintf(buf, "%s", inet_ntoa(*(struct in_addr *)&l)); |
13 |
+ (void)snprintf(buf, sizeof(buf), "%s", inet_ntoa(*(struct in_addr *)&l)); |
14 |
else |
15 |
- (void)sprintf(buf, "%s (%s)", hp->h_name, |
16 |
+ (void)snprintf(buf, sizeof(buf), "%s (%s)", hp->h_name, |
17 |
inet_ntoa(*(struct in_addr *)&l)); |
18 |
return(buf); |
19 |
} |