Replace uses of sprintf(3) with snprintf(3).

At -00, the compiler warns about sprintf(3), and it is promoted to an
error by -Werror.

Change-Id: Ibb380d27d7eb09dda8ac785be2478d656b379190
This commit is contained in:
Dan Albert
2014-10-07 21:08:41 -07:00
parent 5cc5c5ea0b
commit cfd8c45725
7 changed files with 68 additions and 94 deletions

View File

@@ -426,7 +426,7 @@ int b64_ntop(u_char const *, size_t, char *, size_t);
int b64_pton(char const *, u_char *, size_t);
#endif
int loc_aton(const char *, u_char *);
const char * loc_ntoa(const u_char *, char *);
const char * loc_ntoa(const u_char *, char *, size_t);
int dn_skipname(const u_char *, const u_char *);
void putlong(uint32_t, u_char *);
void putshort(uint16_t, u_char *);