head 1.2; access; symbols pkgsrc-2014Q3:1.1.0.46 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.44 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.42 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.40 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.38 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.36 pkgsrc-2013Q2-base:1.1 pkgsrc-2013Q1:1.1.0.34 pkgsrc-2013Q1-base:1.1 pkgsrc-2012Q4:1.1.0.32 pkgsrc-2012Q4-base:1.1 pkgsrc-2012Q3:1.1.0.30 pkgsrc-2012Q3-base:1.1 pkgsrc-2012Q2:1.1.0.28 pkgsrc-2012Q2-base:1.1 pkgsrc-2012Q1:1.1.0.26 pkgsrc-2012Q1-base:1.1 pkgsrc-2011Q4:1.1.0.24 pkgsrc-2011Q4-base:1.1 pkgsrc-2011Q3:1.1.0.22 pkgsrc-2011Q3-base:1.1 pkgsrc-2011Q2:1.1.0.20 pkgsrc-2011Q2-base:1.1 pkgsrc-2011Q1:1.1.0.18 pkgsrc-2011Q1-base:1.1 pkgsrc-2010Q4:1.1.0.16 pkgsrc-2010Q4-base:1.1 pkgsrc-2010Q3:1.1.0.14 pkgsrc-2010Q3-base:1.1 pkgsrc-2010Q2:1.1.0.12 pkgsrc-2010Q2-base:1.1 pkgsrc-2010Q1:1.1.0.10 pkgsrc-2010Q1-base:1.1 pkgsrc-2009Q4:1.1.0.8 pkgsrc-2009Q4-base:1.1 pkgsrc-2009Q3:1.1.0.6 pkgsrc-2009Q3-base:1.1 pkgsrc-2009Q2:1.1.0.4 pkgsrc-2009Q2-base:1.1 pkgsrc-2009Q1:1.1.0.2 pkgsrc-2009Q1-base:1.1; locks; strict; comment @# @; 1.2 date 2014.11.23.00.05.30; author dholland; state dead; branches; next 1.1; commitid J2LJnI3JWZ3dXeZx; 1.1 date 2009.01.25.14.21.13; author obache; state Exp; branches; next ; desc @@ 1.2 log @Add distfile patch: - pass -Wall, use correctly, use standard headers, etc. - fix up illegal printf usage (existing behavior was undefined) - roll in the bug fix from patch-ac - declare own functions properly, avoiding LP64 issues Bump PKGREVISION as some of this fixes bugs. Prompted by (and includes changes from) PR 49347 from Rob Quinn. @ text @$NetBSD: patch-ac,v 1.1 2009/01/25 14:21:13 obache Exp $ Fix off by one error. --- nbtscan.c.orig 2003-06-06 12:14:00.000000000 +0000 +++ nbtscan.c @@@@ -111,7 +111,7 @@@@ int d_print_hostinfo(struct in_addr addr for(i=0; i< hostinfo->header->number_of_names; i++) { service = hostinfo->names[i].ascii_name[15]; strncpy(name, hostinfo->names[i].ascii_name, 15); - name[16]=0; + name[15]=0; printf("%-17s Service: 0x%02x Flags: 0x%04x\n", name, service, hostinfo->names[i].rr_flags); } }; @@@@ -164,7 +164,7 @@@@ int v_print_hostinfo(struct in_addr addr for(i=0; i< hostinfo->header->number_of_names; i++) { service = hostinfo->names[i].ascii_name[15]; strncpy(name, hostinfo->names[i].ascii_name, 15); - name[16]=0; + name[15]=0; unique = !(hostinfo->names[i].rr_flags & 0x0080); if(sf) { printf("%s%s%s%s", inet_ntoa(addr), sf, name, sf); @ 1.1 log @Fix off by one error, noticed by PR 40374. Bump PKGREVISION. As Debian bug #418655, it is already reported to upstream: http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=10;bug=418655 While here, add DESTDIR support. @ text @d1 1 a1 1 $NetBSD$ @