Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
:
tools
>
mtr
> mtr-0.75-sec_snprintf.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File mtr-0.75-sec_snprintf.patch of Package mtr
Index: dns.c =================================================================== --- dns.c.orig +++ dns.c @@ -962,7 +962,7 @@ void resendrequest(struct resolve *rp,in } else if (type == T_PTR) { switch ( af ) { case AF_INET: - sprintf(tempstring,"%u.%u.%u.%u.in-addr.arpa", + snprintf(tempstring, sizeof(tempstring),"%u.%u.%u.%u.in-addr.arpa", ((byte *)&rp->ip)[3], ((byte *)&rp->ip)[2], ((byte *)&rp->ip)[1],