diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2022-06-28 07:36:53 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2022-06-28 07:36:53 +0000 |
commit | 6c89470aab22eecdf829ae6def247f4dcfb2ded5 (patch) | |
tree | 2afbf8cfb29935b3427c236c17f8461d8057f0de /lib/libcurses | |
parent | bc59aa3797a28d9b934170657a15e5dea7ba17e0 (diff) |
tparm %l should push strlen(pop) onto the stack not insert it into the
result, from ncurses 5.9 patch 20130126:
+ change %l behavior in tparm to push the string length onto the
stack rather than saving the formatted length into the output
buffer (report by Roy Marples, cf: 980620).
ok millert
Diffstat (limited to 'lib/libcurses')
-rw-r--r-- | lib/libcurses/tinfo/lib_tparm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcurses/tinfo/lib_tparm.c b/lib/libcurses/tinfo/lib_tparm.c index 45c07f01e06..2e54a43aba5 100644 --- a/lib/libcurses/tinfo/lib_tparm.c +++ b/lib/libcurses/tinfo/lib_tparm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lib_tparm.c,v 1.9 2010/01/12 23:22:06 nicm Exp $ */ +/* $OpenBSD: lib_tparm.c,v 1.10 2022/06/28 07:36:52 nicm Exp $ */ /**************************************************************************** * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc. * @@ -45,7 +45,7 @@ #include <term.h> #include <tic.h> -MODULE_ID("$Id: lib_tparm.c,v 1.9 2010/01/12 23:22:06 nicm Exp $") +MODULE_ID("$Id: lib_tparm.c,v 1.10 2022/06/28 07:36:52 nicm Exp $") /* * char * @@ -552,7 +552,7 @@ tparam_internal(const char *string, va_list ap) break; case 'l': - save_number("%d", (int) strlen(spop()), 0); + npush((int) strlen(spop())); break; case 's': |