EMAIL: Fixed out of memory bug (put help() in LC)

This commit is contained in:
Bobbi Webber-Manners 2020-09-06 00:27:01 -04:00
parent faf3a66c53
commit 379af62ac6

View File

@ -1241,6 +1241,7 @@ void purge_deleted(void) {
_auxtype = 0;
fp2 = fopen(filename, "wb");
if (!fp2) {
fclose(fp);
error(ERR_NONFATAL, "Can't open %s", filename);
return;
}
@ -1865,6 +1866,7 @@ done:
/*
* Display help screen
*/
#pragma code-name (push, "LC")
void help(void) {
clrscr2();
printf("%c%s HELP%c\n", INVERSE, PROGNAME, NORMAL);
@ -1893,6 +1895,7 @@ void help(void) {
fputs("------------------------------------------+------------------------------------", stdout);
cgetc();
}
#pragma code-name (pop)
/*
* Keyboard handler