Skip to content
Snippets Groups Projects
Commit 4197220b authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix attempt to free static const string in online menu

Broken when I removed the ALT-X shortcuts for ANSI/Curses modes.

Should fix issue #188
parent 44b28f37
Branches
Tags
No related merge requests found
Pipeline #8104 passed
......@@ -191,7 +191,8 @@ syncmenu(struct bbslist *bbs, int *speed)
if ((cio_api.mode != CIOLIB_MODE_CURSES)
&& (cio_api.mode != CIOLIB_MODE_CURSES_IBM)
&& (cio_api.mode != CIOLIB_MODE_ANSI)) {
opts[1] = "Disconnect ("ALT_KEY_NAMEP "-H)";
free(opts[1]);
opts[1] = strdup("Disconnect ("ALT_KEY_NAMEP "-H)");
}
else {
for (i = 0; opts[i][0]; i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment