105 |
|
return(2); /* acceptable failure */ |
106 |
|
} |
107 |
|
if (msg.nbytes) { /* get the message body */ |
108 |
+ |
if (msg.nbytes < 0) |
109 |
+ |
error(INTERNAL, "anti-message from display process"); |
110 |
|
buf = (char *)malloc(msg.nbytes); |
111 |
|
if (buf == NULL) |
112 |
|
error(SYSTEM, "out of memory in disp_check"); |
231 |
|
char *p; |
232 |
|
{ |
233 |
|
MSGHEAD msg; |
234 |
< |
|
234 |
> |
/* consistency checks */ |
235 |
> |
#ifdef DEBUG |
236 |
> |
if (nbytes < 0 || nbytes > 0 & p == NULL) |
237 |
> |
error(CONSISTENCY, "bad buffer handed to disp_result"); |
238 |
> |
#endif |
239 |
|
if (dpout == NULL) |
240 |
|
return; |
241 |
|
msg.type = type; |