mirror of
https://github.com/radareorg/radare2.git
synced 2024-10-10 20:34:24 +00:00
* Fix segfault in 'f' command in OpenBSD (thanks @vext01)
This commit is contained in:
parent
12da773d36
commit
1bcfc15360
@ -2351,7 +2351,7 @@ static int cmd_egg(void *data, const char *input) {
|
||||
|
||||
static int cmd_flag(void *data, const char *input) {
|
||||
RCore *core = (RCore *)data;
|
||||
char *str = strdup (input+1);
|
||||
char *str = strdup (input + (*input)? 1:0);
|
||||
ut64 off = core->offset;
|
||||
|
||||
switch (*input) {
|
||||
|
Loading…
Reference in New Issue
Block a user