debugging help
This commit is contained in:
parent
3fd51250be
commit
148f25d351
3 changed files with 8 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue