From b4fc0a872c9cf484b77664293dcc7afdfdbd2f83 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 26 Mar 2009 16:47:13 +0000 Subject: [PATCH] *** empty log message *** --- terminal.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/terminal.c b/terminal.c index 484bb32f..e8bfaa18 100644 --- a/terminal.c +++ b/terminal.c @@ -1,4 +1,4 @@ -/* $Id: terminal.c,v 1.11 2009/03/26 16:44:22 kristaps Exp $ */ +/* $Id: terminal.c,v 1.12 2009/03/26 16:47:13 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -456,7 +456,8 @@ term_pescape(struct termp *p, const char *word, int *i, int len) } } else if ('f' == word[*i]) { - if (++(*i) >= len) + (*i)++; + if (*i >= len) return; switch (word[*i]) { case ('B'): -- 2.47.1