X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fmovewindow.c;h=d826e58dcbd4d66d21bcf443ce7a8efcc894321a;hp=a45121db91d6e732969a902868cee1874414f672;hb=c04d54322f7835ed42e597967d8fa5471025fcac;hpb=4ae6d1c18d0dec956b814865893812655ec3a22c diff --git a/test/movewindow.c b/test/movewindow.c index a45121db..d826e58d 100644 --- a/test/movewindow.c +++ b/test/movewindow.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: movewindow.c,v 1.21 2008/02/09 18:08:28 tom Exp $ + * $Id: movewindow.c,v 1.22 2008/04/12 22:01:41 tom Exp $ * * Demonstrate move functions for windows and derived windows from the curses * library. @@ -251,7 +251,7 @@ add_window(WINDOW *parent, WINDOW *child) keypad(child, TRUE); if (need > have) { - all_windows = (FRAME *) realloc(all_windows, need * sizeof(FRAME)); + all_windows = typeRealloc(FRAME, need, all_windows); } all_windows[num_windows].parent = parent; all_windows[num_windows].child = child;