Fix for menu 5.1.14 buffer overflow

This commit is contained in:
Michiel Broek 2002-02-08 21:28:21 +00:00
parent fe9a285fae
commit 80e6ba6172
3 changed files with 7 additions and 3 deletions

View File

@ -4338,6 +4338,10 @@ v0.33.19 26-Oct-2001
When editing a node's connected file/mail groups it can now When editing a node's connected file/mail groups it can now
handle more then 40 groups without messing up the screen. handle more then 40 groups without messing up the screen.
Fixed area selection in filedatabase editor. Fixed area selection in filedatabase editor.
Protected help string display for boolean edit against buffer
overflow.
Menu 5.1.14, helpstring was too long, causing a buffer
overflow without the previous protection.
mbsebbs: mbsebbs:
Added menu 317, change FS editor shortcut keys to (Emacs/ Added menu 317, change FS editor shortcut keys to (Emacs/

View File

@ -671,8 +671,8 @@ int edit_bool(int y, int x, int val, char *help)
int ch; int ch;
char *temp; char *temp;
temp = calloc(81, sizeof(char)); temp = xstrcpy(help);
sprintf(temp, "%s (Spacebar = toggle)", help); temp = xstrcat(temp, (char *)" (Spacebar = toggle)");
showhelp(temp); showhelp(temp);
free(temp); free(temp);

View File

@ -483,7 +483,7 @@ int EditModemRec(int Area)
case 11:E_STR(17,14,15, modem.speed, "The ^EMSI speed^ message for this modem") case 11:E_STR(17,14,15, modem.speed, "The ^EMSI speed^ message for this modem")
case 12:E_BOOL(15,44, modem.available, "If this modem is ^available^") case 12:E_BOOL(15,44, modem.available, "If this modem is ^available^")
case 13:E_BOOL(16,44, modem.deleted, "If this modem is to be ^deleted^ from the setup") case 13:E_BOOL(16,44, modem.deleted, "If this modem is to be ^deleted^ from the setup")
case 14:E_BOOL(17,44, modem.stripdash, "Stript ^dashes (-)^ from dial command strings if this modem needs it") case 14:E_BOOL(17,44, modem.stripdash, "Strip ^dashes (-)^ from dial command strings if needed")
case 15: case 15:
EditConnect(); EditConnect();
Modem_Screen(); Modem_Screen();