summaryrefslogtreecommitdiff
path: root/lib/libcurses/tinfo/captoinfo.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-03-26 16:45:05 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-03-26 16:45:05 +0000
commitbba3d511e6e50417b63a435c26721c994c19d610 (patch)
treec478ba94ed20a8be221c80bbd4badb6f7d2b405f /lib/libcurses/tinfo/captoinfo.c
parenta764b29e491a525c695ea312bcaeb0a4e1558300 (diff)
Update to ncurses-5.0-20000325
Diffstat (limited to 'lib/libcurses/tinfo/captoinfo.c')
-rw-r--r--lib/libcurses/tinfo/captoinfo.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libcurses/tinfo/captoinfo.c b/lib/libcurses/tinfo/captoinfo.c
index d0e487f779f..8d29df29720 100644
--- a/lib/libcurses/tinfo/captoinfo.c
+++ b/lib/libcurses/tinfo/captoinfo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: captoinfo.c,v 1.6 2000/03/13 23:53:40 millert Exp $ */
+/* $OpenBSD: captoinfo.c,v 1.7 2000/03/26 16:45:03 millert Exp $ */
/****************************************************************************
* Copyright (c) 1998,1999,2000 Free Software Foundation, Inc. *
@@ -94,7 +94,7 @@
#include <ctype.h>
#include <tic.h>
-MODULE_ID("$From: captoinfo.c,v 1.35 2000/03/11 12:27:55 tom Exp $")
+MODULE_ID("$From: captoinfo.c,v 1.36 2000/03/19 23:04:26 tom Exp $")
#define MAX_PUSHED 16 /* max # args we can push onto the stack */
@@ -736,10 +736,9 @@ _nc_infotocap(
bufptr = save_char(bufptr, '%');
while (isdigit(*str))
bufptr = save_char(bufptr, *str++);
- if (strchr("doxX", *str)) {
+ if (strchr("doxX.", *str)) {
if (*str != 'd') /* termcap doesn't have octal, hex */
return 0;
- str++;
}
break;