debugging help

This commit is contained in:
rsc 2005-11-07 02:46:38 +00:00
parent 3fd51250be
commit 148f25d351
3 changed files with 8 additions and 3 deletions

View file

@ -202,8 +202,8 @@ bufimage(Display *d, int n)
{
uchar *p;
if(n<0 || n>d->bufsize){
abort();
if(n<0 || d == nil || n>d->bufsize){
abort();
werrstr("bad count in bufimage");
return 0;
}