chiark
/
gitweb
/
~ian
/
chiark-tcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adns: Use proper variable for aftry array size calculation
[chiark-tcl.git]
/
adns
/
adns.c
diff --git
a/adns/adns.c
b/adns/adns.c
index 201212c44b36106950f9a1a17ce4a054a1355fa2..d0ee2955b94e09e26c36acde087faf81212173fd 100644
(file)
--- a/
adns/adns.c
+++ b/
adns/adns.c
@@
-73,9
+73,7
@@
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301, USA.
+ * along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#define _GNU_SOURCE
*/
#define _GNU_SOURCE
@@
-496,7
+494,7
@@
static int query_submit(Tcl_Interp *ip,
if (op.reverseany || (op.sflags & oisf_reverse)) {
const int *af;
if (op.reverseany || (op.sflags & oisf_reverse)) {
const int *af;
- for (af=aftry; af < af + sizeof(af
)/sizeof(*af
); af++) {
+ for (af=aftry; af < af + sizeof(af
try)/sizeof(*aftry
); af++) {
memset(&sa,0,sizeof(sa));
sa.sa_family= *af;
r= inet_pton(*af,domain,&sa);
memset(&sa,0,sizeof(sa));
sa.sa_family= *af;
r= inet_pton(*af,domain,&sa);