Fixed compiler warnings while building the BBS. Thanks to Ken Bowley for the

patches.
This commit is contained in:
Andrew Leary
2016-09-29 04:55:12 -04:00
parent f7401d92d0
commit b6e58185cd
42 changed files with 93 additions and 83 deletions

View File

@@ -1042,7 +1042,7 @@ void Choose_Mailbox(char *Option)
SetEmailArea((char *)"trash");
else if (!strcmp(sMailbox, "trash"))
SetEmailArea((char *)"archive");
else if (!strcmp(sMailbox, "archive"));
else if (!strcmp(sMailbox, "archive"))
SetEmailArea((char *)"mailbox");
}
Syslog('+', "Emailarea: %s", sMailbox);

View File

@@ -328,7 +328,7 @@ void DoMenu(int Type)
case 7:
/* Run external program */
if (strlen(menus.DoorName) && !menus.HideDoor) {
memset(temp, 0, sizeof(temp));
memset(temp, 0, sizeof(*temp));
strcpy(temp, menus.DoorName);
ExtDoor(menus.OptionalData, menus.NoDoorsys, menus.Y2Kdoorsys, menus.Comport,
menus.NoSuid, menus.NoPrompt, menus.SingleUser, temp);