mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-13 16:18:33 +00:00
Fix off-by-one in 'ad' command
This commit is contained in:
parent
e0ee4edb10
commit
fb62b2558d
@ -1613,7 +1613,7 @@ count = R_MIN (count, len);
|
||||
i += word;
|
||||
break;
|
||||
case R_ANAL_DATA_TYPE_STRING:
|
||||
buf[len] = 0;
|
||||
buf[len-1] = 0;
|
||||
i += strlen ((const char*)buf+i)+1;
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user