]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/base/wresize.c
ncurses 5.7 - patch 20100501
[ncurses.git] / ncurses / base / wresize.c
index e441b669d7c6b2bcf68616d78ea78b986c9a2008..e3aeb4fa746ed8e1d657b682a393e64e09cf71c0 100644 (file)
@@ -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 <curses.priv.h>
 
-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];
        }