=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/window/Attic/ttzapple.c,v retrieving revision 1.4 retrieving revision 1.5 diff -c -r1.4 -r1.5 *** src/usr.bin/window/Attic/ttzapple.c 2001/11/19 19:02:18 1.4 --- src/usr.bin/window/Attic/ttzapple.c 2003/04/05 01:39:50 1.5 *************** *** 1,4 **** ! /* $OpenBSD: ttzapple.c,v 1.4 2001/11/19 19:02:18 mpech Exp $ */ /* $NetBSD: ttzapple.c,v 1.3 1995/09/28 10:34:57 tls Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: ttzapple.c,v 1.5 2003/04/05 01:39:50 pvalchev Exp $ */ /* $NetBSD: ttzapple.c,v 1.3 1995/09/28 10:34:57 tls Exp $ */ /* *************** *** 41,47 **** #if 0 static char sccsid[] = "@(#)ttzapple.c 8.1 (Berkeley) 6/6/93"; #else ! static char rcsid[] = "$OpenBSD: ttzapple.c,v 1.4 2001/11/19 19:02:18 mpech Exp $"; #endif #endif /* not lint */ --- 41,47 ---- #if 0 static char sccsid[] = "@(#)ttzapple.c 8.1 (Berkeley) 6/6/93"; #else ! static char rcsid[] = "$OpenBSD: ttzapple.c,v 1.5 2003/04/05 01:39:50 pvalchev Exp $"; #endif #endif /* not lint */ *************** *** 334,340 **** if (zz_debug) { char buf[100]; zz_setmodes(WWM_REV); ! (void) sprintf(buf, "%02x=", t); ttputs(buf); tt.tt_col += 3; } --- 334,340 ---- if (zz_debug) { char buf[100]; zz_setmodes(WWM_REV); ! (void) snprintf(buf, sizeof(buf), "%02x=", t); ttputs(buf); tt.tt_col += 3; } *************** *** 354,360 **** if (zz_debug) { char buf[100]; zz_setmodes(WWM_REV); ! (void) sprintf(buf, "%02x>", t); ttputs(buf); tt.tt_col += 3; } --- 354,360 ---- if (zz_debug) { char buf[100]; zz_setmodes(WWM_REV); ! (void) snprintf(buf, sizeof(buf), "%02x>", t); ttputs(buf); tt.tt_col += 3; }