tree-wide: voidify unchecked snprintf calls
According to Coverity, 194 ouf of 227 times we check for snprintf return code. Voidify the rest. CID#1461512 CID#1461513 CID#1461514 CID#1461515 CID#1461516 CID#1461518 CID#1461519 CID#1461520 CID#1461522
This commit is contained in:
@@ -323,10 +323,10 @@ char* dns_resource_key_to_string(const DnsResourceKey *key, char *buf, size_t bu
|
||||
c = dns_class_to_string(key->class);
|
||||
t = dns_type_to_string(key->type);
|
||||
|
||||
snprintf(buf, buf_size, "%s %s%s%.0u %s%s%.0u",
|
||||
dns_resource_key_name(key),
|
||||
strempty(c), c ? "" : "CLASS", c ? 0 : key->class,
|
||||
strempty(t), t ? "" : "TYPE", t ? 0 : key->type);
|
||||
(void) snprintf(buf, buf_size, "%s %s%s%.0u %s%s%.0u",
|
||||
dns_resource_key_name(key),
|
||||
strempty(c), c ? "" : "CLASS", c ? 0 : key->class,
|
||||
strempty(t), t ? "" : "TYPE", t ? 0 : key->type);
|
||||
|
||||
return ans;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user