=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/window/Attic/lcmd1.c,v retrieving revision 1.6 retrieving revision 1.7 diff -c -r1.6 -r1.7 *** src/usr.bin/window/Attic/lcmd1.c 2001/11/19 19:02:18 1.6 --- src/usr.bin/window/Attic/lcmd1.c 2003/04/05 01:39:50 1.7 *************** *** 1,4 **** ! /* $OpenBSD: lcmd1.c,v 1.6 2001/11/19 19:02:18 mpech Exp $ */ /* $NetBSD: lcmd1.c,v 1.6 1996/02/08 20:45:00 mycroft Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: lcmd1.c,v 1.7 2003/04/05 01:39:50 pvalchev Exp $ */ /* $NetBSD: lcmd1.c,v 1.6 1996/02/08 20:45:00 mycroft Exp $ */ /* *************** *** 41,47 **** #if 0 static char sccsid[] = "@(#)lcmd1.c 8.1 (Berkeley) 6/6/93"; #else ! static char rcsid[] = "$OpenBSD: lcmd1.c,v 1.6 2001/11/19 19:02:18 mpech Exp $"; #endif #endif /* not lint */ --- 41,47 ---- #if 0 static char sccsid[] = "@(#)lcmd1.c 8.1 (Berkeley) 6/6/93"; #else ! static char rcsid[] = "$OpenBSD: lcmd1.c,v 1.7 2003/04/05 01:39:50 pvalchev Exp $"; #endif #endif /* not lint */ *************** *** 330,336 **** return; while (a->v_type != V_ERR) { if (a->v_type == V_NUM) { ! (void) sprintf(buf, "%d", a->v_num); (void) write(w->ww_pty, buf, strlen(buf)); } else (void) write(w->ww_pty, a->v_str, strlen(a->v_str)); --- 330,336 ---- return; while (a->v_type != V_ERR) { if (a->v_type == V_NUM) { ! (void) snprintf(buf, sizeof(buf), "%d", a->v_num); (void) write(w->ww_pty, buf, strlen(buf)); } else (void) write(w->ww_pty, a->v_str, strlen(a->v_str));