* handle errors inside of note(). the error message is appended to the * given message but on a separate line and must fit within nmBufSize. */
| 467 | * given message but on a separate line and must fit within nmBufSize. |
| 468 | */ |
| 469 | static void |
| 470 | noteErrorMessage(unsigned char *msg, unsigned char *errMsg) |
| 471 | { |
| 472 | short i = nmt.nmBuf[0] + 1; /* insertion point */ |
| 473 | |
| 474 | BlockMove(&msg[1], &nmt.nmBuf[i], msg[0]); |
| 475 | nmt.nmBuf[i + msg[0]] = '\r'; |
| 476 | nmt.nmBuf[0] += (msg[0] + 1); |
| 477 | |
| 478 | note(memFullErr, 0, errMsg); |
| 479 | } |
| 480 | |
| 481 | /* |
| 482 | * display messages using Notification Manager or an alert. |