X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Fbase%2Fwresize.c;h=e3aeb4fa746ed8e1d657b682a393e64e09cf71c0;hp=e441b669d7c6b2bcf68616d78ea78b986c9a2008;hb=92e187a3459ab7ce1613a3684ca6642447c73620;hpb=18865150079f74b17047633094e3994516af8a41;ds=sidebyside diff --git a/ncurses/base/wresize.c b/ncurses/base/wresize.c index e441b669..e3aeb4fa 100644 --- a/ncurses/base/wresize.c +++ b/ncurses/base/wresize.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2008,2009 Free Software Foundation, Inc. * + * Copyright (c) 1998-2009,2010 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 * @@ -33,7 +33,7 @@ #include -MODULE_ID("$Id: wresize.c,v 1.31 2009/05/23 19:50:16 tom Exp $") +MODULE_ID("$Id: wresize.c,v 1.33 2010/05/01 22:04:08 tom Exp $") static int cleanup_lines(struct ldat *data, int length) @@ -97,7 +97,7 @@ wresize(WINDOW *win, int ToLines, int ToCols) struct ldat *new_lines = 0; #ifdef TRACE - T((T_CALLED("wresize(%p,%d,%d)"), win, ToLines, ToCols)); + T((T_CALLED("wresize(%p,%d,%d)"), (void *) win, ToLines, ToCols)); if (win) { TR(TRACE_UPDATE, ("...beg (%ld, %ld), max(%ld,%ld), reg(%ld,%ld)", (long) win->_begy, (long) win->_begx, @@ -174,6 +174,7 @@ wresize(WINDOW *win, int ToLines, int ToCols) s[col] = win->_nc_bkgd; } } else { + assert(pline != 0); s = &pline[win->_pary + row].text[win->_parx]; }