X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Fbase%2Fwresize.c;fp=ncurses%2Fbase%2Fwresize.c;h=e3aeb4fa746ed8e1d657b682a393e64e09cf71c0;hp=d5ce3974e278b0cab85edd147ca2a354a8c55012;hb=92e187a3459ab7ce1613a3684ca6642447c73620;hpb=11dead39816318fe9601e27756b9497caf7ff490;ds=sidebyside diff --git a/ncurses/base/wresize.c b/ncurses/base/wresize.c index d5ce3974..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.32 2009/10/24 22:15:00 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) @@ -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]; }