2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

switch to using snprintf from sprintf

This commit is contained in:
Mark Andrews
2017-09-28 07:15:46 +10:00
parent abb8813a33
commit d386eb54c6

View File

@@ -95,7 +95,7 @@ totext_caa(ARGS_TOTEXT) {
* Flags
*/
flags = uint8_consume_fromregion(&region);
sprintf(buf, "%u ", flags);
snprintf(buf, sizeof(buf), "%u ", flags);
RETERR(str_totext(buf, target));
/*