mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-31 01:24:43 +02:00
Virus: Fix dot command segfault
This commit is contained in:
parent
9bd76d6c15
commit
d30dbda897
2
virus.c
2
virus.c
@ -2647,7 +2647,7 @@ static Byte *char_insert(Byte * p, Byte c) // insert the char c at 'p'
|
|||||||
p = text_hole_delete (p, p); // shrink buffer 1 char
|
p = text_hole_delete (p, p); // shrink buffer 1 char
|
||||||
#ifdef BB_FEATURE_VI_DOT_CMD
|
#ifdef BB_FEATURE_VI_DOT_CMD
|
||||||
// also rmove char from last_modifying_cmd
|
// also rmove char from last_modifying_cmd
|
||||||
if (strlen((char *) last_modifying_cmd) > 0) {
|
if (last_modifying_cmd && (strlen((char *) last_modifying_cmd) > 0)) {
|
||||||
Byte *q;
|
Byte *q;
|
||||||
|
|
||||||
q = last_modifying_cmd;
|
q = last_modifying_cmd;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user