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

@@ -671,8 +671,8 @@ int edit_bool(int y, int x, int val, char *help)
int ch;
char *temp;
temp = calloc(81, sizeof(char));
sprintf(temp, "%s (Spacebar = toggle)", help);
temp = xstrcpy(help);
temp = xstrcat(temp, (char *)" (Spacebar = toggle)");
showhelp(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 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 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:
EditConnect();
Modem_Screen();