diff options
| author | Kurt Jaeger <pi@FreeBSD.org> | 2018-08-19 14:38:07 +0000 |
|---|---|---|
| committer | Kurt Jaeger <pi@FreeBSD.org> | 2018-08-19 14:38:07 +0000 |
| commit | 2f8afdcc5141c264588358e59c61068196acf961 (patch) | |
| tree | a2c45a0254b5ec18f008d863fc50673cc943b0e3 /math/sc-im/files/patch-cmds__command.c | |
| parent | databases/ora2pg: update 18.2 -> 19.0 (diff) | |
math/sc-im: fix segmentation fault upon :wq
- bug reported upstream as https://github.com/andmarti1424/sc-im/pull/280
PR: 227861
Submitted by: Samy Mahmoudi <samy.mahmoudi@gmail.com>
Approved by: bapt (maintainer timeout)
Diffstat (limited to '')
| -rw-r--r-- | math/sc-im/files/patch-cmds__command.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/math/sc-im/files/patch-cmds__command.c b/math/sc-im/files/patch-cmds__command.c new file mode 100644 index 000000000000..31705a6e84b3 --- /dev/null +++ b/math/sc-im/files/patch-cmds__command.c @@ -0,0 +1,11 @@ +--- cmds_command.c.orig 2018-08-03 06:04:39 UTC ++++ cmds_command.c +@@ -826,7 +826,7 @@ void do_commandmode(struct block * sb) { + exec_cmd(line); + + } else if ( inputline[0] == L'w' ) { +- if (savefile() == 0 && ! wcscmp(inputline, L"wq")) shall_quit = 1; ++ if (savefile() == 0 && ! wcsncmp(inputline, L"wq", 2)) shall_quit = 1; + + } else if ( ! wcsncmp(inputline, L"file ", 5) ) { + |
