Received: by mail.netbsd.org (Postfix, from userid 0) id 8A23B63B112; Mon, 23 Nov 2009 10:08:50 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 0A85863B13D for ; Mon, 23 Nov 2009 10:08:47 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id CC995175DD; Mon, 23 Nov 2009 10:08:47 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: binary Content-Type: text/plain Date: Mon, 23 Nov 2009 10:08:47 +0000 From: Iain Hibbert Subject: CVS commit: src/lib/libc/gen To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20091123100847.CC995175DD@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: list Reply-To: source-changes-d@NetBSD.org Module Name: src Committed By: plunky Date: Mon Nov 23 10:08:47 UTC 2009 Modified Files: src/lib/libc/gen: vis.c Log Message: fix VIS_HTTPSTYLE to not convert "safe" ($-_.+) and "extra" (!*'(),) characters as mentioned in rfc1738 and rfc1808 and, I think intended all along in this code but the logic was inverted. Don't use strchr as it also matches the NUL character which we want to escape, just compare against the chars directly as done in the FreeBSD code. To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/lib/libc/gen/vis.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.