Module Name: src Committed By: bouyer Date: Wed Jun 17 20:30:59 UTC 2009
Modified Files: src/usr.bin/window [netbsd-5]: ttgeneric.c Log Message: Pull up following revision(s) (requested by christos in ticket #813): usr.bin/window/ttgeneric.c: revision 1.11 PR/41581: Der mouse: window SEGV with certain terminals. does strcmp first and then checks for null pointer for underline and bold. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.9.40.1 src/usr.bin/window/ttgeneric.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/window/ttgeneric.c diff -u src/usr.bin/window/ttgeneric.c:1.9 src/usr.bin/window/ttgeneric.c:1.9.40.1 --- src/usr.bin/window/ttgeneric.c:1.9 Thu Aug 7 11:17:30 2003 +++ src/usr.bin/window/ttgeneric.c Wed Jun 17 20:30:59 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: ttgeneric.c,v 1.9 2003/08/07 11:17:30 agc Exp $ */ +/* $NetBSD: ttgeneric.c,v 1.9.40.1 2009/06/17 20:30:59 bouyer Exp $ */ /* * Copyright (c) 1983, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)ttgeneric.c 8.1 (Berkeley) 6/6/93"; #else -__RCSID("$NetBSD: ttgeneric.c,v 1.9 2003/08/07 11:17:30 agc Exp $"); +__RCSID("$NetBSD: ttgeneric.c,v 1.9.40.1 2009/06/17 20:30:59 bouyer Exp $"); #endif #endif /* not lint */ @@ -169,8 +169,8 @@ } else if (gen_SE) { ttxputs(gen_SE); - if (!strcmp(gen_SE->ts_str, gen_UE->ts_str) && - gen_UE && gen_US && new & WWM_UL) + if (gen_UE && gen_US && new & WWM_UL && + !strcmp(gen_SE->ts_str, gen_UE->ts_str)) ttxputs(gen_US); } } @@ -181,8 +181,8 @@ } else if (gen_UE) { ttxputs(gen_UE); - if (!strcmp(gen_UE->ts_str, gen_SE->ts_str) && - gen_SE && gen_SO && new & WWM_REV) + if (gen_SE && gen_SO && new & WWM_REV && + !strcmp(gen_UE->ts_str, gen_SE->ts_str)) ttxputs(gen_SO); } }