X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fpopup_msg.c;h=09eff5e39430b86ccc23f18a5f7c3f2adc1d92b9;hp=5c0e5bad09898bfcea4c76b641dc74ff86d8eb64;hb=e6bb3226cdd35f5fd9f45bb1685cc2203c889480;hpb=5487d20851d0dea54352bb44817b39e9945f90c2 diff --git a/test/popup_msg.c b/test/popup_msg.c index 5c0e5bad..09eff5e3 100644 --- a/test/popup_msg.c +++ b/test/popup_msg.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright 2018,2020 Thomas E. Dickey * + * Copyright 2018-2020,2021 Thomas E. Dickey * * Copyright 2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,7 +27,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: popup_msg.c,v 1.10 2020/02/02 23:34:34 tom Exp $ + * $Id: popup_msg.c,v 1.11 2021/12/18 21:19:19 tom Exp $ * * Show a multi-line message in a window which may extend beyond the screen. * @@ -87,7 +87,7 @@ popup_msg(WINDOW *parent, const char *const *msg) if ((help = newwin(high, wide, y0, x0)) == 0) return; - if ((data = newpad(length + 1, width)) == 0) { + if ((data = newpad(length + 1, width + 1)) == 0) { delwin(help); return; }