X-Git-Url: https://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=ncurses%2Ftinfo%2Fcaptoinfo.c;h=4959edc72a1efde65303afb716088963149aca19;hb=5eb177874dea59107a1a2ea44f5d8f5bb99550b2;hp=dd02d902dc5261a67c4849508d8c15c07ec22b68;hpb=76a479337308b4b5e749fa8c38b7b7f482998c5b;p=ncurses.git diff --git a/ncurses/tinfo/captoinfo.c b/ncurses/tinfo/captoinfo.c index dd02d902..4959edc7 100644 --- a/ncurses/tinfo/captoinfo.c +++ b/ncurses/tinfo/captoinfo.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2012,2016 Free Software Foundation, Inc. * + * Copyright (c) 1998-2016,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -93,7 +93,7 @@ #include #include -MODULE_ID("$Id: captoinfo.c,v 1.78 2016/05/28 23:22:52 tom Exp $") +MODULE_ID("$Id: captoinfo.c,v 1.79 2017/02/11 20:08:49 tom Exp $") #define MAX_PUSHED 16 /* max # args we can push onto the stack */ @@ -239,7 +239,7 @@ getparm(int parm, int n) parm = 1; } - while (n--) { + while (n-- > 0) { dp = save_string(dp, "%p"); dp = save_char(dp, '0' + parm); } @@ -248,7 +248,7 @@ getparm(int parm, int n) if (n > 1) { _nc_warning("string may not be optimal"); dp = save_string(dp, "%Pa"); - while (n--) { + while (n-- > 0) { dp = save_string(dp, "%ga"); } }