Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libterminfo Escape , when converting to terminfo.
details: https://anonhg.NetBSD.org/src/rev/d60c24ec6987
branches: trunk
changeset: 752553:d60c24ec6987
user: roy <roy%NetBSD.org@localhost>
date: Mon Mar 01 11:02:31 2010 +0000
description:
Escape , when converting to terminfo.
diffstat:
lib/libterminfo/termcap.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r 8ad23038d4a2 -r d60c24ec6987 lib/libterminfo/termcap.c
--- a/lib/libterminfo/termcap.c Mon Mar 01 07:52:21 2010 +0000
+++ b/lib/libterminfo/termcap.c Mon Mar 01 11:02:31 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: termcap.c,v 1.3 2010/02/26 00:09:00 roy Exp $ */
+/* $NetBSD: termcap.c,v 1.4 2010/03/01 11:02:31 roy Exp $ */
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: termcap.c,v 1.3 2010/02/26 00:09:00 roy Exp $");
+__RCSID("$NetBSD: termcap.c,v 1.4 2010/03/01 11:02:31 roy Exp $");
#include <assert.h>
#include <ctype.h>
@@ -243,6 +243,12 @@
if (l + 2 > len)
goto elen;
if (*val != '%') {
+ if (*val == ',') {
+ if (l + 3 > len)
+ goto elen;
+ *ip++ = '\\';
+ l++;
+ }
*ip++ = *val;
l++;
continue;
Home |
Main Index |
Thread Index |
Old Index