ref: fce9c3e65a940ff96a595340eb1e12620c73f029
parent: 8eecdc96643cf0d90f850212e6e2bd351bdc00e7
author: cinap_lenrek <[email protected]>
date: Thu Oct 11 14:29:17 EDT 2018
ndb/dns: avoid format strings in procname
--- a/sys/src/cmd/ndb/dnresolve.c
+++ b/sys/src/cmd/ndb/dnresolve.c
@@ -145,7 +145,7 @@
}
if(drp != nil)
rrfreelist(drp);
- procsetname(procname);
+ procsetname("%s", procname);
free(procname);
return rp;
}
@@ -188,7 +188,7 @@
if(rp == nil && status != nil && dp->respcode != Rok)
*status = dp->respcode;
}
- procsetname(procname);
+ procsetname("%s", procname);
free(procname);
return randomize(rp);
}