* Fix segfault in 'f' command in OpenBSD (thanks @vext01)

This commit is contained in:
pancake 2011-12-19 18:10:05 +01:00
parent 12da773d36
commit 1bcfc15360

View File

@ -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) {