head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.54 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.52 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.50 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.48 pkgsrc-2011Q2-base:1.3 pkgsrc-2009Q4:1.3.0.46 pkgsrc-2009Q4-base:1.3 pkgsrc-2008Q4:1.3.0.44 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.42 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.40 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.38 pkgsrc-2008Q2-base:1.3 pkgsrc-2008Q1:1.3.0.36 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.34 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.32 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.30 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.28 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.26 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.24 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.22 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.20 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.18 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.16 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.14 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.12 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.10 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.8 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.3.0.6 pkgsrc-2004Q2-base:1.3 pkgsrc-2004Q1:1.3.0.4 pkgsrc-2004Q1-base:1.3 pkgsrc-2003Q4:1.3.0.2 pkgsrc-2003Q4-base:1.3 buildlink2-base:1.3 netbsd-1-5-RELEASE:1.2 netbsd-1-4-PATCH003:1.2 netbsd-1-4-PATCH002:1.2 comdex-fall-1999:1.2 netbsd-1-4-PATCH001:1.2 netbsd-1-4-RELEASE:1.2 netbsd-1-3-PATCH003:1.2 netbsd-1-3-PATCH002:1.1; locks; strict; comment @# @; 1.3 date 2000.12.14.01.01.34; author wiz; state dead; branches; next 1.2; 1.2 date 98.08.07.11.11.15; author agc; state Exp; branches; next 1.1; 1.1 date 97.10.29.10.42.47; author agc; state Exp; branches; next ; desc @@ 1.3 log @Move 9term from plan9 to x11. @ text @$NetBSD: patch-ad,v 1.2 1998/08/07 11:11:15 agc Exp $ --- libtext/scroll.c.orig Fri Nov 19 08:14:25 1993 +++ libtext/scroll.c Wed Oct 29 10:33:41 1997 @@@@ -6,7 +6,9 @@@@ static Bitmap *_dkgrey; +#ifndef MAX #define MAX(x, y) ((x) > (y) ? (x) : (y)) +#endif static Rectangle Return-Path: Received: by juno.ccc.amdahl.com (/\==/\ Smail #25.1) id ; Tue, 28 Oct 97 14:52 PST Received: from orpheus.amdahl.com by minerva.amdahl.com with smtp (Smail3.1.29.1 #5) id m0xQKT5-0000oPC; Tue, 28 Oct 97 14:50 PST Received: from hawkwind.utcs.utoronto.ca by orpheus.amdahl.com with smtp (Smail3.1.29.1 #3) id m0xQKU5-0001EkC; Tue, 28 Oct 97 14:51 PST Received: from finch.cse.psu.edu ([130.203.12.29]) by hawkwind.utcs.utoronto.ca with SMTP id <24684>; Tue, 28 Oct 1997 17:43:51 -0500 Received: (qmail 21504 invoked by uid 991); 28 Oct 1997 06:32:35 -0000 Message-ID: <19971028063235.21502.qmail@@finch.cse.psu.edu> To: sam-fans@@hawkwind.utcs.toronto.edu Subject: 9term bug Date: Tue, 28 Oct 1997 01:32:35 -0500 From: Scott Schwartz Hi all, I don't recall if this has been reported or not, but libtext from fails to initialize everything in a newly allocated Text. (bcheck is your friend.) --- libtext/text.c.orig Thu Dec 15 15:01:45 1994 +++ libtext/text.c Wed Oct 29 10:32:55 1997 @@@@ -4,7 +4,10 @@@@ #include #include +#ifndef MAX #define MAX(x, y) ((x > y) ? x : y) +#endif + #define BUTTON(n) (1<<(n-1)) static Menu edit; @@@@ -47,6 +50,7 @@@@ berror("textalloc: calloc"); t->length = 0; t->base = 0; + t->end = 0; t->p0 = 0; t->p1 = 0; t->pout = 0; @ 1.2 log @Add NetBSD RCS Ids. @ text @d1 1 a1 1 $NetBSD$ @ 1.1 log @Add a patch from Scott Schwartz , which initialises a newly-allocated Text structure properly. Also clean up two compiler warnings while I'm here. @ text @d1 2 @